r data frame select and rename columns code example Example: r dataframe change column name names(df)[1] <- paste("newName")