Displaying 2 results from an estimated 2 matches for "avglog1".
Did you mean:
avglog
2010 May 04
1
make a column from the row names
Dear All,
> avglog
01/11/09 02/11/09 03/11/09 04/11/09
9.750000 4.500000 4.500000 8.666667
> avglog1 <- data.frame(avglog)
> avglog1
avglog
01/11/09 9.750000
02/11/09 4.500000
03/11/09 4.500000
04/11/09 8.666667
The first column isnt a column, It's the row names. I makeing a column from
the row names by using the following
> value1$Day <- rownames(value1)
> value1...
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...mail.com>
To: r-help at r-project.org
Subject: [R] make a column from the row names
Message-ID:
<n2ha827c4211005040606n2c73cff0w3be82d38b4c5aa08 at mail.gmail.com>
Content-Type: text/plain
Dear All,
> avglog
01/11/09 02/11/09 03/11/09 04/11/09
9.750000 4.500000 4.500000 8.666667
> avglog1 <- data.frame(avglog)
> avglog1
avglog
01/11/09 9.750000
02/11/09 4.500000
03/11/09 4.500000
04/11/09 8.666667
The first column isnt a column, It's the row names. I makeing a column from
the row names by using the following
> value1$Day <- rownames(value1)
> value1...