Thank you for anyone's advice and help! I am trying to use R to replace one column's values with the values of another column correspondent to its specific id.
For example, in the short snippet below I am trying to convert the nearestN column of values to instead display the Sscore for that nearestN's OBJECTID.
I other words, is there a code I can run that transforms the "8" in the nearestN column to a "10.050505," the "27" to a 14.260462," etc.?
OBJECTID    NAME            Sscore  nearestN
2           Abbeville city  10.826118   8
8           Alexander City  10.050505   27
10          Aliceville city 3.030303    15
15          Anniston city   5.8333335   10
27          Auburn city     14.260462   2
 
    