setting a specic column name in R code example Example: R rename singl edf column colnames(trSamp)[2] <- "newname2"