[R] what is "better" when combining data frames? merge vs. rbind & cbind
Duncan Murdoch
murdoch at stats.uwo.ca
Fri Jun 22 12:40:23 CEST 2007
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
More information about the R-help
mailing list