I want to create a new id variable based on another id variable. here is what my data look like:
ID
250
250
340
340
340
650
650
650
I want:
ID New_ID
250 1
250 1
340 2
340 2
340 2
650 3
650 3
650 3
I tried using this using "group_by" in tidyverse, but I am running into errors. Can someone help?