[R] Accessing Named Column in a Matrix
Gundala Viswanath
gundalav at gmail.com
Tue Jun 24 03:12:00 CEST 2008
Hi,
How can I access the "var" column in this matrix
>print(data)
var
[1,] 1372.23718 2.277450e+04
[2,] 74.48333 5.494448e+01
[3,] 226.63590 6.023199e+02
I've had a look with
> str(data)
num [1:150, 1:80] 30.9 8.6 8.5 159.7 1.7 ...
- attr(*, "dimnames")=List of 2
..$ : NULL
..$ : chr [1:80] "" "" "" "" ...
But can't seem to make sense how to access "var" value.
I've also tried with
data$var
But still fail to access "var" column
- Gundala Viswanath
Jakarta - Indonesia
More information about the R-help
mailing list