R Modifier le nom de la colonne dans DataFrame
df <- df %>%
rename(newName1 = oldName1 ,
newName2 = oldName2)
adriendums
df <- df %>%
rename(newName1 = oldName1 ,
newName2 = oldName2)
colnames(dataset) <- c('name1','name2',..)
colnames(df)[colnames(df) == "name"] <- "new_name"
names(df)[1] <- paste("newName")