[R] data frame column name change

Pete Brecknock Peter.Brecknock at bp.com
Mon Jan 17 14:56:23 CET 2011


or ....

d = data.frame(Col1=c(1,2,3),Col2=c(2,3,4),Col3=c(3,4,5))
names(d)

names(d)[1] = "NewName1"
names(d)

HTH

Pete
-- 
View this message in context: http://r.789695.n4.nabble.com/data-frame-column-name-change-tp3220684p3221214.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list