complete.cases(...)
complete.cases returns a vector specifying which
observations/rows have no missing values across the entire sequence.
See Also
na.omit, na.fail.
Examples
# x is a regression design matrix
# y is the corresponding response
ok <- complete.cases(x,y)
x <- x[ok,]
y <- y[ok]