Hello,

Try


a<-matrix(c(1,2,3,4,4,5,6,6,-999.99,5,9,-999.00),nrow=4)
ix <- apply(a, 1, function(x) sum(trunc(x) != -999) == ncol(a))
a[ix, ]

Hope this helps

Rui Barradas


--
View this message in context: 
http://r.789695.n4.nabble.com/removing-particular-row-from-matrix-tp4407401p4407490.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to