Dataframe_1
Name Value
a 4
b 5
c 7
d 9
Dataframe_2
Name Mass
a 131
c 140
b 110
d 90
I want the following result:
Name Value Mass
a 4 131
b 5 110
c 7 140
d 9 90
I did this originally as the following but now I have dataframe_2 that I want to get the value from
Dataframe_1$Mass <- gsub("a", 131, Dataframe_1$Name)
Thank you for your help