r name columns in dataframe code example Example: r dataframe change column name names(df)[1] <- paste("newName")