Please consider the following three columns:
OLD-REP OLD NEW
1 1 2
2 2 3
2 3 4
2 4 5
2 5 6
2 6 7
2 7 8
2 8 9
3 9 10
3 10 11
The last two columns are the old ID with its equivalent. The first one however has the same old ID only with repetitions, so I need a way to replace the old REP ID with its equivalent in the new ID.
It will be like this:
OLD-REP OLD NEW
2 1 2
3 2 3
3 3 4
3 4 5
3 5 6
3 6 7
3 7 8
3 8 9
4 9 10
4 10 11
Any ideas how to do this?