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