Hi all,

 

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.

 

Yen Lin


        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to