View source: R/changeVarNames.R
changeVarNames | R Documentation |
Change variable names of a GADSdat
or all_GADSdat
object.
changeVarNames(GADSdat, oldNames, newNames, checkVarNames = TRUE)
GADSdat |
|
oldNames |
Vector containing the old variable names. |
newNames |
Vector containing the new variable names, in identical order as |
checkVarNames |
Logical. Should new variable names be checked by |
Applied to a GADSdat
or all_GADSdat
object, this function is a wrapper of getChangeMeta
and
applyChangeMeta
Returns the GADSdat
object with changed variable names.
# Change multiple variable name
pisa2 <- changeVarNames(pisa, oldNames = c("idstud", "idschool"),
newNames = c("IDstud", "IDschool"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.