powered by
Clone a variable as part of a GADSdat object.
GADSdat
cloneVariable( GADSdat, varName, new_varName, label_suffix = "", checkVarName = TRUE )
Returns a GADSdat.
GADSdat object imported via eatGADS.
eatGADS
Name of the variable to be cloned.
Name of the new variable.
Suffix added to variable label for the newly created variable in the GADSdat.
Logical. Should new_varName be checked by checkVarNames?
new_varName
checkVarNames
The variable is simply duplicated and assigned a new name.
# duplicate the variable schtype pisa_new <- cloneVariable(pisa, varName = "schtype", new_varName = "schtype_new")
Run the code above in your browser using DataLab