powered by
Generate SPSS 'RENAME' syntax to rename a (set of) variables into another.
spss.rename(values, rename)
the variable(s) to be renamed.
the name(s) to use for renaming.
# NOT RUN { spss.rename(c("oldname1", "oldname2", "oldname3"), c("new1", "new2", "new3")) spss.rename(c("oldname1", "oldname2"), c("new1", "new2")) # }
Run the code above in your browser using DataLab