powered by
Change variable names of a GADSdat or all_GADSdat object.
GADSdat
all_GADSdat
changeVarNames(GADSdat, oldNames, newNames, checkVarNames = TRUE)
Returns the GADSdat object with changed variable names.
GADSdat object imported via eatGADS.
eatGADS
Vector containing the old variable names.
Vector containing the new variable names, in identical order as oldNames.
oldNames
Logical. Should new variable names be checked by checkVarNames?
checkVarNames
Applied to a GADSdat or all_GADSdat object, this function is a wrapper of getChangeMeta and applyChangeMeta
getChangeMeta
applyChangeMeta
# Change multiple variable name pisa2 <- changeVarNames(pisa, oldNames = c("idstud", "idschool"), newNames = c("IDstud", "IDschool"))
Run the code above in your browser using DataLab