Replace values based on data frame
I have a data frame in R, called arcs, that has some values of which I
would like to change the name. I would like to change the name based on
another data frame, called names. names has two columns, the first column
is the old name, and the second column is the new name. I would like to go
through arcs and if there is a name in arcs that appears in the first
column of names, I would like to change it to the second column of names.
Is that possible?
Thanks
No comments:
Post a Comment