[R] what is "better" when combining data frames? merge vs. rbind & cbind

From: Thomas Pujol <thomas.pujol_at_yahoo.com>
Date: Thu, 21 Jun 2007 12:36:16 -0700 (PDT)

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]]

R-help_at_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 and provide commented, minimal, self-contained, reproducible code. Received on Fri 22 Jun 2007 - 10:40:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 22 Jun 2007 - 11:32:18 GMT.

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