Skip to content
Prev 205478 / 398506 Next

removing the rows with negative elements

x[-which(x < 0, arr.ind=TRUE)[,1],]

but I'm sure someone will suggest an easier way.

Simon.
On Wed, 2010-01-06 at 05:13 +0000, faridamsb at gmail.com wrote: