I am trying to find out if R can recognize specific criteria for removing
rows (i.e. a prexisting function)

I have a matrix myMatrix that is 12000 by 20

I would like to remove rows from myMatrix that have:

-999 across all columns
-999 across all columns but one
-999 across all columns but two
-999 across all columns but three
-999 across all columns but four
-999 across all columns but five

(-999 here is my missing value)

Does R have a function for this, I've explored subset() so far

	[[alternative HTML version deleted]]


