r: cambiar el nombre de una columna
colnames(df)[which(names(df) == "columnName")] <- "newColumnName"
Andrea Perlato
colnames(df)[which(names(df) == "columnName")] <- "newColumnName"