Hello, I have a variable which contains random numbers in each value, also there are missing values between each of the values in the variable. I would like to replace each value in the variable with ordered numbers.
For example if I have 'n' values in the variable, I would like the first appearing value to be '1' and the second appearing value to be '2' all the way up to 'n'. What code can I use to implement this?
For example if I have 'n' values in the variable, I would like the first appearing value to be '1' and the second appearing value to be '2' all the way up to 'n'. What code can I use to implement this?
Comment