R ganti nama kolom singl edf

colnames(trSamp)[2] <- "newname2"
Scary Swan