Hello, everyone.
I am sorry if I repeated the same topic with, someone did.
I have a problem in replacing string character in a specific position. Let say; I have a variable ID which its type is the string and 10 char long.
I want to make a new variable that consists of ID variable value but replacing the "3" character in coordinate position (3,1) only by "1" character . If I could make it, the new variable will become like this:
How to make it using a command in stata?
Thank you.
I am sorry if I repeated the same topic with, someone did.
I have a problem in replacing string character in a specific position. Let say; I have a variable ID which its type is the string and 10 char long.
Code:
ID 0013003001 0013004001 0023001003 0033001003 0033003003
Code:
ID_new 0011003001 0011004001 0021001003 0031001003 0031003003
Thank you.
Comment