r program to change column name from a data frame code example
Example 1: r change column name in dataframe
df <- df %>%
rename(newName1 = oldName1 ,
newName2 = oldName2)
Example 2: how to change column names in r
colnames(dataset) <- c('name1','name2',..)