Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash
- Posts: 1
- Joined: Sun Jun 22, 2014 4:28 am
I have a numeric variable, how do I create a new one with the first three numbers?
DRG ---> DRGa
12345 ---> 123
......... ---> .....
IBM SPSS v.21
- Posts: 1477
- Joined: Tue Jun 10, 2008 4:50 pm
You can do this by a substring function, however, this only works on string variables, so you would have to convert your numeric variables into string.
Who is online
Users browsing this forum: No registered users and 5 guests