rdo.call

How to use function do.call() efficiently?


I have many dataframe (a,b,c,d,e,f,g,....) in a list which have the same structure. When using do.call() to union all of them, it's very slow. Is there any method to combine them more efficiently? Thanks!

mylist<-list(a,b,c,d,e,f,g,....)
do.call(rbind, mylist)

Solution

  • library(data.table)
    
    rbindlist(mylist)