powered by
Clone a variable as part of a GADSdat object.
GADSdat
cloneVariable(GADSdat, varName, new_varName)
Returns a GADSdat.
GADSdat object imported via eatGADS.
eatGADS
Name of the variable to be cloned.
Name of the new variable.
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