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
> wrote:
> > Michael,
> > Thank you for this ,
On Thu, Aug 2, 2012 at 4:52 PM, Ayyappa Chaturvedula
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
You can merge without a common variable:
x <- data.frame(x = 1:5)
y <- data.frame(y = 6:10)
merge(x,y)
works just fine (for one set of expectations)
If you need more help, please do make a reproducible example (as
requested of all R-help posts): the instructions here might help
http://stackove
3 matches
Mail list logo