View source: R/append_colname_prefix.R
append_colname_prefix | R Documentation |
m2c2R
append_colname_prefix(data, group_var, var_prefix)
data |
Name of tibble or data frame |
group_var |
Name of grouping variable, in quotes (for example: "participant_id") |
var_prefix |
Prefix to be added to the name of each variable (for example: "study1_") |
This function adds a prefix to variable names in a specified tibble or data frame.
Returns input data frame with modified variable names (for example: "study1_participant_id."
Nelson Roque, Nelson.Roque@ucf.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.