Dear Statalist users,
I have a string variable(patient id) in the form
ED6/01/001
ED6/01/002
ED6/01/003
I would like to automatically convert it to the form
ED6/01/0001
ED6/01/0002
ED6/01/0003
Your assistance is much appreciated
Related Posts with adding a zero in the middle of a string variable
a command to create a new variable starting from a specific yearI have data set from two different time periods, the first periods from the year 1990 to 2019 and th…
regress by stateHi Statalist, I have a dataset, which includes wk(weekdays), wk2(weekend), sn(state by group), reso…
Stata vs Python for data managementStata has the best data management of a single data set (a single data frame) that I have come acros…
"Reshaping" data to panel dataI cannot include my source data due to sensitivity, but if needed I will post a template with made u…
Creating a Complicated Variable.Hello all, I have 7 variable all coded 0 = no and 1 = yes. (nothing else). All variables ask if you…
Subscribe to:
Post Comments (Atom)
0 Response to adding a zero in the middle of a string variable
Post a Comment