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
Post a Comment