renameVars | R Documentation |
Allows to easily utilize different version of variable naming, e.g. for diffnerent languages.
renameVars(data, rename)
data |
data.frame containing each variable in a spearate column |
rename |
mapping file (csv) to rename vars. Contains the following columns: OLD, NEW, TYPE, VARNAME, REFERENCE. OLD contains the old names, NEW the new ones, TYPE is VARNAME for variables (colnames of data), and LEVEL for the corresponding variable levels. VARNAME contains the old variable name to which each levels corresponds to. REFERENCE is the ordre for factors, 1 being the reference |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.