powered by
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())
a vector of unique variable names
a vector of proposed new variable names
a vector of existing variable names
Tom Elliott
make_names(c("var_x", "var_y"), c("var_x", "var_z"))
Run the code above in your browser using DataLab