I tired this and seems to capture only a few -- View this message in context: http://r.789695.n4.nabble.com/removing-rows-from-a-matrix-using-condition-within-groups-tp3004132p3005894.html Sent from the R help mailing list archive at Nabble.com.