View source: R/rename_sg_vars.R
rename_sg_vars | R Documentation |
Rename variable names to a generic and consistent format that can be used by other functions of the suddengains package.
rename_sg_vars( data, rename_var_list, new_var_str = "temp_var_", start_numbering = 1 )
data |
Dataframe in wide format. |
rename_var_list |
Vector of variables to be renamed. |
new_var_str |
String, new name for variables. |
start_numbering |
Numeric, first number to be used as suffix for renaming variables specified in "rename_var_list". |
Dataframe in wide format with renamed variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.