I have a question to create unique consumer_id using R.
Here is the expected data set.The original data has name and order_no.
name order_no. consumer_id
a #1000 1
#1000 1
#1000 1
b #1001 2
c #1002 3
#1002 3
d #1003 4