r - How to use the list feature in ffload to selectively load an ffdf? -


how use list feature in ffloadproperly selectively load part of ffdf?

i have read numerous times possible selectively load parts of ff dataframe, can't seem working myself.

my issue i'm trying perform merge vector has list of unique ids ffdf file large computer handle merge.

so far have been trying use ffinfo list of different parts making ffdf.

for instance, following list of "file parts" ffdf in question:

ffinfo(file=paste(imp_tables_root_loc,table_name,sep="")) 

where paste(imp_tables_root_loc,table_name,sep="") specifies ffdf table , location

[1] "ffdf1590409e251b.ff" "ffdf159047426082.ff" "ffdf159058a426ab.ff" "ffdf1590410708c.ff"  "ffdf159022b49bf.ff"   [6] "ffdf1590174e5dec.ff" "ffdf159045d93226.ff" "ffdf159037f87280.ff" "ffdf159044ad3d39.ff" "ffdf15905224601a.ff" [11] "ffdf159027936205.ff" "ffdf1590133841c8.ff" "ffdf15902d365cac.ff" "ffdf159065b4259.ff"  "ffdf15904a162908.ff" [16] "ffdf15905529c1c.ff"  "ffdf1590eda1092.ff"  "ffdf1590ab65eb.ff"   "ffdf159048e74f82.ff" 

i try ffload calling:

ffload(file=paste(imp_tables_root_loc,table_name,sep=""),list="ffdf1590409e251b.ff") 

but results in error:

error in ffload(file = paste(imp_tables_root_loc, table_name, sep = ""), : not in ffarchive: " ffdf1590409e251b.ff",

list: optional vector of names selecting objects restored (default null restores all)

so lets load specific object when ffsave'd multiple. i.e.

r> = as.ffdf(data.frame(x = rnorm(10), y = rbinom(10, 5, .2))) r> b = as.ffdf(data.frame(g = 1:15, h = rpois(15, 5))) r> ffsave(a, b, file = "foo") r> rm(list = ls()) r> ffload("foo", list = "a") r> ls() [1] "a" r> rm(list = ls()) r> ffload("foo", list = "b") r> ls() [1] "b" 

i don't think allows load 1 column of ffdf


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -