Change column names of a dataframe
change_colnames(df, current_names, new_names)
Dataframe
Vector of column names to change.
Vector of new names.
Dataframe with new column names
if (FALSE) {
df <- data.frame(A = 1:2, B = 3:4, C = 5:6)
df <- change_colnames(df, c("A", "C"), c("Aa", "Cc"))
}