na.keep: Do-nothing na.action

Description Usage Arguments Value Author(s) See Also Examples

View source: R/na.keep.s

Description

Does not delete rows containing NAs, but does add details concerning the distribution of the response variable if options(na.detail.response=TRUE). This na.action is primarily for use with describe.formula.

Usage

1
na.keep(mf)

Arguments

mf

a model frame

Value

the same model frame with the "na.action" attribute

Author(s)

Frank Harrell
Department of Biostatistics
Vanderbilt University
[email protected]

See Also

na.omit, na.delete, model.frame.default, na.detail.response, naresid, naprint, describe

Examples

1
2
3
4
5
6
options(na.action="na.keep", na.detail.response=TRUE)
x1 <- runif(20)
x2 <- runif(20)
x2[1:4] <- NA
y <- rnorm(20)
describe(y ~ x1*x2)

harrelfe/Hmisc documentation built on Nov. 4, 2018, 3:24 p.m.