Message-ID: <OF1B9ACBB5.4E2831CA-ONC1257A4F.002452C0-C1257A4F.0024BEDC@precheza.cz>
Date: 2012-08-03T06:39:40Z
From: PIKAL Petr
Subject: Help on merging without a common variable
In-Reply-To: <CAAmySGOJdzb1U3oXhs7NxkH++=m6RG3On9O+WJ2qyEy08sPpTA@mail.gmail.com>
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.