Greetings all,
Suppose I have variable X that I want to convert to X1 and X2 as follows:
So basically I want to take X and make two new variables- variable X2 has only the last character of X and variable X1 has all but the last character of X.
I tried to split string but am not able to get it to do this. Please advise, thanks so much!
Suppose I have variable X that I want to convert to X1 and X2 as follows:
X | X1 | X2 |
123 | 12 | 3 |
456 | 45 | 6 |
7890 | 789 | 0 |
I tried to split string but am not able to get it to do this. Please advise, thanks so much!
Comment