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