This help topic is for R version 0.90. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/na.fail.html
na.fail {base}R Documentation

Handle Missing Values in Objects

Description

These generic functions are useful for dealing with NAs in e.g., data frames. na.fail returns the data frame if it does not contain any missing values, and signals an error otherwise. na.omit returns the data frame with incomplete cases removed.

Usage

na.fail(object)
na.omit(object)

Arguments

object

an R object, typically a data frame

See Also

na.action, options(na.action=..) for setting “NA actions”, and lm and glm for functions using these.

Examples

DF <- data.frame(x = c(1, 2, 3), y = c(0, 10, NA))
na.omit(DF)
## Not run: na.fail(DF)#> Error: missing values in ..

options("na.action")

[Package base version 0.90 ]