Possible Duplicate:
How to join data frames in R (inner, outer, left, right)?
Combine two data frames and remove duplicate columns
How do I add more than one column to a dataframe?
I have an existing dataframe (dataframe.X
) that consists of 189 rows and 35 columns. To this, after column 35, I want to add 19 columns which I have in a separate dataframe (dataframe.Y
), also containing 189 rows.
If it was just one column (and dataframe.Y
would be only one column), I would do this:
dataframe.X$NEW.COLUMN<-dataframe.Y
But that does not work for more than one column. Is there an easy way to do this, without doing it all manually?