Suppose I have a 4 x 2 matrix A and I want to select the values in second column such that the value in first column equals to k.
I gave the colnames as alpha beta, so I was trying to access the info using
A$beta[A[,1]==k], however, I was told it's not a data frame, I can get the object by using dollar sign. I tried data.frame(A), but it didn't work.
Any input on this will be very appreciated. Thanks.
I tried looking in the manual, but I think I'm might be wrong about the keywords.
[[alternative HTML version deleted]]
This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:53 EST