anderwyang
anderwyang

Reputation: 2411

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)

Upvotes: 1

Views: 212

Answers (1)

Sweepy Dodo
Sweepy Dodo

Reputation: 1863

library(data.table)

rbindlist(mylist)

Upvotes: 3

Related Questions