Skip to content
Prev 169778 / 398506 Next

Re turn values < 0 from Matrix

If your matrix is called mat, how about

mat[which(mat[,2] > 0), ]


mat[which(mat[,2] < 0), ]


-Ian
mentor_ wrote: