Displaying 1 result from an estimated 1 matches for "tp3220684p3221214".
2011 Jan 17
2
data frame column name change
How do I change the name of one column in a data frame ? Suppose I have a
data frame x with 5 columns. If the names were date, col1, col2, col3, col4
and I wanted to simply change the name of date, what would the command be ?
I tried the following and it didn't seem to work :
names(x[1]) <- "newname"
Thanks in advance for the comments
--
View this message in context: