Description Usage Arguments Value Examples
View source: R/utility_functions.R
Change column names of a dataframe
1 | change_colnames(df, current_names, new_names)
|
df |
Dataframe |
current_names |
Vector of column names to change. |
new_names |
Vector of new names. |
Dataframe with new column names
1 2 | df <- data.frame(A = 1:2, B = 3:4, C = 5:6)
df <- change_colnames(df, c("A", "C"), c("Aa", "Cc"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.