On Mon, Jun 23, 2008 at 9:12 PM, Gundala Viswanath <[EMAIL PROTECTED]>
wrote:
> I've also tried with
>
> data$var
>
> But still fail to access "var" column
>
you can't use $ with matrices (see help("$") !), but you can use [ with
names, or convert you matrix to a data frame:
myData[, "var"]
It does not appear that the 'print' statment agrees with the output of
'str'. It appears that you only have a 3x2 matrix in the 'print',
while the 'str' indicates a 150x80 matrix. Can you "provide
commented, minimal, self-contained, reproducible code" so it is easier
to see what the problem might
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(*
3 matches
Mail list logo