how to do 'converge' style functional programming in R? -


guys:

i have list of binary rdata files. say

filenames<-c(f1,f2,f3 .... etc) 

and have loadbinfile(fname) function reads binary file , return data frame. then, how can write functional programming style 'coverge' goes through filenames list , increamentally builds aggregated big data frame?

in kdb, it's

(),/loadfile[]  each filenames 

any r equivalent?

thanks!

try this:

do.call("rbind", lapply(filenames, loadfile)) 

it might works depends on content:

sapply(filenames, loadfile) 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -