View source: R/changeVarLabels.R
changeVarLabels | R Documentation |
Change variable labels of one or multiple variables as part of a GADSdat
object.
changeVarLabels(GADSdat, varName, varLabel)
GADSdat |
|
varName |
Character vector of variable names. |
varLabel |
Character vector of the new variable labels. |
Applied to a GADSdat
or all_GADSdat
object, this function is a wrapper
of getChangeMeta
and applyChangeMeta
.
Returns the GADSdat
object with changed meta data.
# Change one variable label
pisa2 <- changeVarLabels(pisa, varName = "repeated",
varLabel = c("Has a grade been repeated?"))
# Change multiple variable labels
pisa2 <- changeVarLabels(pisa, varName = c("repeated", "gender"),
varLabel = c("Has a grade been repeated?",
"Student gender"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.