spss.rename {syntaxr}R Documentation

Generate SPSS 'RENAME' syntax to rename a (set of) variables into another.

Description

Generate SPSS 'RENAME' syntax to rename a (set of) variables into another.

Usage

spss.rename(values, rename)

Arguments

values

the variable(s) to be renamed.

rename

the name(s) to use for renaming.

Examples

spss.rename(c("oldname1", "oldname2", "oldname3"), c("new1", "new2", "new3"))
spss.rename(c("oldname1", "oldname2"), c("new1", "new2"))

[Package syntaxr version 0.8.0 Index]