Skip to content
Prev 205479 / 398506 Next

removing the rows with negative elements

x[apply(x,1,function(x)all(x>=0)),]

  -Peter Ehlers
Simon Blomberg wrote: