na.keep | R Documentation |
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
.
na.keep(mf)
mf |
a model frame |
the same model frame with the "na.action"
attribute
Frank Harrell
Department of Biostatistics
Vanderbilt University
fh@fharrell.com
na.omit
, na.delete
, model.frame.default
, na.detail.response
,
naresid
, naprint
, describe
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.