Hello,
I am working with 28 million observations, and I would like to create a unique identifier from 1 to 28 million for each one. I used:
gen id = _n
Which worked great, except after the first 10 million observations, the data started labelling them in exponential format "1.00e+07", giving hundreds of observations the exact same id.
when I use the command "format %9.0 id", it turns it back into numeric but still creates many duplicate id's. I think it assigned them a number in the middle.
Any help would be appreciated
Thanks!
I am working with 28 million observations, and I would like to create a unique identifier from 1 to 28 million for each one. I used:
gen id = _n
Which worked great, except after the first 10 million observations, the data started labelling them in exponential format "1.00e+07", giving hundreds of observations the exact same id.
when I use the command "format %9.0 id", it turns it back into numeric but still creates many duplicate id's. I think it assigned them a number in the middle.
Any help would be appreciated
Thanks!
Comment