So in R I have a column consisting of strings that look like something similar to this:
"Peter","Paul","John","Melissa","Paul","Peter" ...
And I want to convert these names to a numerical ID format, like this:
1,2,3,4,2,1
In other words - I want to create a numerical ID for the names where same names receive same numeric values, different names receive different numeric values. What are the best ways to do this?
Try
Or
data