import names to fit ids in a dataframe

It seems to be a direct application of join functions of dplyr, most likely to be left_join.

You can get more information about these here in the documentation and here in R4DS.

Most probably, base::merge will work as well.

If these do not work, can you please provide a REPRoducible EXample of your problem? It provides more specifics of your problem, and it helps others to understand what problem you are facing.

If you don't know how to do it, take a look at this thread:

1 Like