[R] extracting names from matrix according to a condition

ivan i.petzev at gmail.com
Mon Apr 25 19:58:24 CEST 2011

Dear Community,

I have a matrix with assigned colnames and rolnames as follows:

            A            B
NR    0.15      0,05
AL     0,05      0,05
.           .            .
.           .            .
.           .            .

I want to extract the names of the rows for which A>0,1 and B<0,1. In
the above example this would be observation NR only. Hence the output
should write for instance:


Is this possible? Thank you very much for your help.

Best Regards

More information about the R-help mailing list