Re: [R] extract rows having negative values

2009-06-07 Thread Manisha Brahmachary
Thank you Bill, your suggestion works just fine!!! -Original Message- From: bill.venab...@csiro.au [mailto:bill.venab...@csiro.au] Sent: Sunday, June 07, 2009 3:23 AM To: Manisha Brahmachary; r-help@r-project.org Subject: RE: extract rows having negative values rownames(X)[apply(X, 1, fu

Re: [R] extract rows having negative values

2009-06-07 Thread Bill.Venables
rownames(X)[apply(X, 1, function(r) any(r < 0))] ... if I understand you correctly. From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of Manisha Brahmachary [mb3...@c2b2.columbia.edu] Sent: 07 June 2009 08:54 To: r-help@r-project.