Hello, I have survey data with lengthy person identity numbers, for example:
1000600101
1000600101
1000600107
1000600107
1000600107
1000600110
1000600110
etc.
I would like to create a new column where the identity numbers (which have been sorted already) are reduced to the following:
1
1
2
2
2
3
3
etc.
I would appreciate any advise on how to renumber the identity column taking into account duplicates (all identity numbers have at least one duplicate, some up to 8).
Thank you.
1000600101
1000600101
1000600107
1000600107
1000600107
1000600110
1000600110
etc.
I would like to create a new column where the identity numbers (which have been sorted already) are reduced to the following:
1
1
2
2
2
3
3
etc.
I would appreciate any advise on how to renumber the identity column taking into account duplicates (all identity numbers have at least one duplicate, some up to 8).
Thank you.

Comment