|
Hello Everyone - I just realized how poorly worded yesterday's question was, so I'll now present it in a more understandable format. In my spss dataset, I have a large number of variables that begin with the following 3 characters: DA_
For example, I might have as variables:
DA_brt DA_BART DA_ AMC.EXC DA_YAD DA_AMCID
I have a need to rename these variables into:
brt BART AMC.EXC YAD AMCID
That is, just remove the DA_ from the beginning of each variable name to create the new variable name. The handful of other variables in the dataset that don't begin with DA_, such as date and hour, remain unchanged.
I know in python there is a way using regular expressions to select variables beginning with DA_, using (pattern=r'DA_) with VariableDict, but I need to change the name of these variables, not just select them. I hope this makes my question more understandable, and I am grateful for any suggestions/help. |
|
| Free forum by Nabble | Edit this page |
