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
Dear All,
I want to create a dataset for a NONMEM simulation. I have a dataframe with
individual PK parameters and want to create a dosing sceinario in a second
dataframe. I want to merge them both so that every individiual's PK
parameters are combined with the dosing scenario into one. I do not
4 matches
Mail list logo