View source: R/cloneVariable.R
cloneVariable | R Documentation |
Clone a variable as part of a GADSdat
object.
cloneVariable(
GADSdat,
varName,
new_varName,
label_suffix = "",
checkVarName = TRUE
)
GADSdat |
|
varName |
Name of the variable to be cloned. |
new_varName |
Name of the new variable. |
label_suffix |
Suffix added to variable label for the newly created variable in the |
checkVarName |
Logical. Should |
The variable is simply duplicated and assigned a new name.
Returns a GADSdat
.
# duplicate the variable schtype
pisa_new <- cloneVariable(pisa, varName = "schtype", new_varName = "schtype_new")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.