Eric -
As others have said, you should change the names of the variables
in the data frames before you merge them. Here's one implementation
of that idea:
DF.wave.1 <- data.frame(id=1:10,var.A=sample(letters[1:4],10,TRUE))
DF.wave.2 <- data.frame(id=1:10,var.M=sample(letters[5:8],10,TR
Is there anyone out there who can suggest a way to solve this problem?
Thanks,
Esben
On Sun, Apr 24, 2011 at 8:53 PM, Jeff Newmiller
wrote:
> Merge only lets you combine two tables at a time, but it does have a
> "suffix" argument that is intended to address your concern, but only for
> variable
Merge only lets you combine two tables at a time, but it does have a "suffix"
argument that is intended to address your concern, but only for variable names
that would conflict.
In your example, the id variables are all sequenced exactly the same, so you
could actually use cbind rather than mer
Dear R-list,
Here is my simple question,
I have n data frames that I would like to merge, but I can't figure
out how to add information about the origin of the variable(s).
Here is my problem,
DF.wave.1 <- data.frame(id=1:10,var.A=sample(letters[1:4],10,TRUE))
DF.wave.2 <- data.frame(id=1:10,va
4 matches
Mail list logo