Hello,
My data doesn't have a unique identifier and I want to generate a unique id of each row of 4 digits (0001, 0002, 0003..... 1114, etc), so I can later merge the ID with other elements such as State Name, (NY0001, NY0002, ... NY1114 etc). I am using _n but only generates a number of length 1.
Thanks,
Tania
Related Posts with Generate unique ID of 4 digits
Looping with MacrosHI I have a query about looping with macros. I have uploaded a do-file of my code to this post. Es…
Moderation in Fixed Effects AnalysisHi to everyone, The main technique I found to measure moderation is inserting some interaction term…
Issue(s) with reshaping.Hi I wondering if anyone could help me reshape this data set I'm currently working on.(Sample using …
Repeated Imputation Inference using data from the Survey of Consumer FinancesHi everyone, The dataset I am using for my thesis is the ‘Survey of Consumer Finances’ - a feature …
Time Series for Fixed EffectsHi to everyone, I have a doubt regarding time series for fixed effects. I do not understand well wh…
Subscribe to:
Post Comments (Atom)
0 Response to Generate unique ID of 4 digits
Post a Comment