Learn R Programming

eatGADS (version 1.1.1)

changeVarLabels: Change the variable label.

Description

Change the variable label of a variable as part of a GADSdat or all_GADSdat object.

Usage

changeVarLabels(GADSdat, varName, varLabel)

Value

Returns the GADSdat object with changed meta data.

Arguments

GADSdat

GADSdat object imported via eatGADS.

varName

Character string of variable names.

varLabel

Character string of the new variable labels.

Details

Applied to a GADSdat or all_GADSdat object, this function is a wrapper of getChangeMeta and applyChangeMeta.

Examples

Run this code
# Change one variable label
pisa2 <- changeVarLabels(pisa, varName = "repeated",
                        varLabel = c("Has a grade been repeated?"))

Run the code above in your browser using DataLab