[R] Concatenating data frame

From: Charles Cheung <boom2k1_at_hotmail.com>
Date: Thu 11 May 2006 - 07:42:38 EST


Hello, I have searched through the R-help archive and find that the easiest way to concatenate data records in a dataframe is to use rbind()

I know we can do that using rbind, but it is slow when we are doing rbind thousands of times to a growing list, each time adding one or two records to the ever growing existing data because in

existingRecords<-rbind(existingRecords, aNewRecordToBeAdded),

I am making a copy of the data each time rbind is called!

Is there a way to avoid these data copying?

Thank you in advance!

Charles



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu May 11 08:20:28 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 11 May 2006 - 10:10:08 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.