Help on merging without a common variable
Hi OTOH I wonder why cbind gives error as OP told us x <- data.frame(x = 1:5) y <- data.frame(y = 6:15) merge(x,y) cbind(x,y) Gives different results but without any error. Regards Petr
On Thu, Aug 2, 2012 at 4:52 PM, Ayyappa Chaturvedula <ayyappach at gmail.com> wrote:
Michael, Thank you for this , it worked. I was thinking "by" is a required
argument
in merge function.
Well, it is "required" in a strict sense, but it has a default value (defaulting to the shared names) so _you_ don't have to specify it. Best, Michael
Regards, Ayyappa
______________________________________________ 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.