[Solved] r – merge is only working if I do it twice?


From the documentation of merge:

If the columns in the data frames not used in merging have any common
names, these have suffixes (“.x” and “.y” by default) appended to try
to make the names of the result unique. If this is not possible, an
error is thrown.

Based on your names results before and after, this seems to be the case.

solved r – merge is only working if I do it twice?