Hi all,
I have a piece of code which combined two data frames (df1 and df2) with the same columns, but different rows. Both have the same three columns (the first which is called "names" and for sake of argument the other two columns are c1 and c2) and both can have any number of rows. The values in the column "names" are all different between the data frames:
full_join(df1, df2, BY = names)
In the previous version of dplyr, by using this piece of code the second data frame was simply appended underneath the first and the resulting data frame would still be 3 columns and the number of rows would be the sum of the number of rows of the two data frames.
In the new version of dplyr, the function full_join has changed and I had to amend the code for it to work:
full_join(df1, df2, by = join_by(names))
However this doesn't result in the same data frame I used to get, but instead it returns two extra columns (the number of rows stays the same):
names, c1.x, c2.x, c1.y, c2.y
Does anyone have any idea how I can use this function to give me the previous result:
names, c1, c2
Kind regards,
Thijs