Hi all, I have multiple data frames created with equal number of columns in each data frame by using mclapply() on multicore processor. The data frames are like DF[[1]], DF[[2]], ... DF[[150]]. Now i want to bind (Similar like rbind()) all these data frames and create one single data frame called DF so that i can have the complete data for further analysis. Can someone help me in performing this function through looking (without manual specification of DF[[count]]s). Thanks in advance for your help. Regards, Madana -- View this message in context: http://r.789695.n4.nabble.com/Binding-multiple-data-frames-into-single-data-frame-tp3691335p3691335.html Sent from the R help mailing list archive at Nabble.com.
Joshua Wiley
2011-Jul-25 00:43 UTC
[R] Binding multiple data frames into single data frame
Hi Madana,
No example data, so untested, but I think this will do what you want:
do.call("rbind", DF)
Cheers,
Josh
On Sun, Jul 24, 2011 at 5:38 PM, Madana_Babu <madana_babu at infosys.com>
wrote:> Hi all,
>
> I have multiple data frames created with equal number of columns in each
> data frame by using mclapply() on multicore processor. The data frames are
> like DF[[1]], DF[[2]], ... DF[[150]]. Now i want to bind (Similar like
> rbind()) all these data frames and create one single data frame called DF
so
> that i can have the complete data for further analysis. Can someone help me
> in performing this function through looking (without manual specification
of
> DF[[count]]s).
>
> Thanks in advance for your help.
>
> Regards,
> Madana
>
> --
> View this message in context:
http://r.789695.n4.nabble.com/Binding-multiple-data-frames-into-single-data-frame-tp3691335p3691335.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
https://joshuawiley.com/
This is working for me... however when i use multicore there are more than 60K DF's getting created and when i use do.call() function it is taking huge time. Is there any function which can perform this operation at faster rate? Regards, Madana -- View this message in context: http://r.789695.n4.nabble.com/Binding-multiple-data-frames-into-single-data-frame-tp3691335p3693871.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]]