make_names | R Documentation |
Helper function to create new variable names that are unique given a set of existing names (in a data set, for example). If a variable name already exists, a number will be appended.
make_names(new, existing = character())
new |
a vector of proposed new variable names |
existing |
a vector of existing variable names |
a vector of unique variable names
Tom Elliott
make_names(c("var_x", "var_y"), c("var_x", "var_z"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.