@dapenDaniel wrote:
Hello,
I have a dataset as below.
ID V1 V2
1 aa bb
1 aa bc
1 aa bd
I want to add a second ID which begins from 751. The dataset I want is below.
what code do I need to use? Thanks!
Do you want to prefix your current ID variable with 75 or create a new sequence that starts at 751? The difference would be
ID V1 V2 ID2
1 aa bb 751
1 aa bc 751
1 aa bd 751
2 bb cc 752
3 ae dg 753
5 cc dd 755 (prefix) or 754 (sequence)
Also is your ID character or numeric? And do you want the ID2 to be character or numeric?