I want to combine the data so that it outputs the same 15 rows (matched by "column 1", only the additional columns not present in df2, appear at the end of what would have otherwise been df1.
Some columns may contain matching values between the two data frames, and in those cases im happy not for those columns to merge across.
Example:
df1
Column 1 Column 2 Column 3.
1a Blue. 15
2b Red. 20
3c Green. 25
df2
Column 1 Column 3 Column 4.
1a 15 Apple
2b 20 Pear
3c 25. Orange
df3 (new Dataframe)
Column 1 Column 2 Column 3. Column 4.
1a Blue. 15 Apple
2b Red. 20 Pear
3c Green. 25 Orange
The following does not work because where originally both data sets have 10 rows, once combined the new dataset has 30 rows.
merge.df3 <- merge(df1,df2, by = "column 1")