Thomas Pujol
2007-Jun-21 19:36 UTC
[R] what is "better" when combining data frames? merge vs. rbind & cbind
I often need to "combine" data frames, sometimes "vertically" and other times "horizontally". When it "better" to use merge? When is it better to use rbind or cbind? Are there clear pros and cons of each approach? --------------------------------- [[alternative HTML version deleted]]
Duncan Murdoch
2007-Jun-22 10:40 UTC
[R] what is "better" when combining data frames? merge vs. rbind & cbind
On 21/06/2007 3:36 PM, Thomas Pujol wrote:> I often need to "combine" data frames, sometimes "vertically" and other times "horizontally". > > When it "better" to use merge? When is it better to use rbind or cbind? > > Are there clear pros and cons of each approach?If rbind or cbind work, use them. They are much simpler, but much less flexible. Duncan Murdoch