Skip to content
Prev 69276 / 398526 Next

how to get such a subset of a matrix?

Try:

  a[rowSums(is.na(a)) <= 2, ]

Andy