Skip to content
Prev 181975 / 398506 Next

renaming column names

Cannot reproduce with a toy example:

 > data <- data.frame(a=1:3, b=4:6, c=6:8)
 > colnames(data) <- c("d","e","f")
 > colnames(data)
[1] "d" "e" "f"


Perhaps you need to produce more detail. Surely offering the results  
of dput(a) would not tax the limits of the R-mail server.