Rename non-key variables in a list of variable names if they appear multiple times in the list of variable names.
1 | rename_cols(name_list, all_list = name_list, key_list)
|
name_list |
A list of variable names. |
all_list |
A larger list of variable names. |
key_list |
A list of identifier names. These should not be renamed. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.