Description Usage Arguments Details Value Author(s) Examples
View source: R/xpssRenameVariables.R
R implementation of the SPSS RENAME VARIABLES
function. xpssRenameVariables renames variables within an exisiting data.frame or xpssFrame object.
1 | xpssRenameVariables(x, oldVarNames = NULL, newVarNames = NULL)
|
x |
a (non-empty) data.frame or input data of class |
oldVarNames |
atomic character or character vector with the names of the variables to rename. oldVarNames must be a variable that already exists in the data set. |
newVarNames |
atomic character or character vector with the new variable names. |
Modifies names of one or more variables within a selected dataset. The arguments oldVarNames and newVarNames must have the same length.
Returns the data with the renamed variables.
Andreas Wygrabek
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.