Hi
I have data like this which has repeating numbers
c(1,1,1,4,6,1,1,1, 7,7,1,1,1,...)
I would like to have this transformed to something like:
c(1,2,3,4,6,1,2,3,7,8, 1,2,3,...)
All the repeating numbers should be replaced by numbers that go up 1 at a time. Those that do not repeat remain the same.
Any ideas?
Cheers
Renger