Hi,
Please let me know how can I add zeros to a string variable. for example, in my dataset, there is a variable called nic_code, and it ranges from 01000 to 99999. However, in the raw data, 01000, 02000,... have been written as 01, 02,.. only and it is a string variable. Could you please tell me how can I convert this into a string variable with 5-digits? for other numbers like 99988, the data looks ok.
thank you so much
Please let me know how can I add zeros to a string variable. for example, in my dataset, there is a variable called nic_code, and it ranges from 01000 to 99999. However, in the raw data, 01000, 02000,... have been written as 01, 02,.. only and it is a string variable. Could you please tell me how can I convert this into a string variable with 5-digits? for other numbers like 99988, the data looks ok.
thank you so much
Comment