[ top | up ]

Find Complete Cases

Syntax

complete.cases(...)

Arguments

... a sequence of vectors, matrices and data frames.

Value

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]