I have a column that contains multiple 13's, 14's, 15's..all the way to 24. I would like to replace each value, with the same interval of 1, but start with 1 and go to 12 (so 13 = 1, 14 = 2, and so on).
I tried using the apply function and ifelse statement to see if the condition is met, change to new value but I was not successful.
Any help would be greatly appreciated!
x - min(x) + 1x - 12