na.action {stats} | R Documentation |
Extract information on the NA action used to create an object.
na.action(object, ...)
object |
any object whose |
... |
further arguments special methods could require. |
na.action
is a generic function, and na.action.default
its
default method. The latter extracts the "na.action"
component
of a list if present, otherwise the "na.action"
attribute.
When model.frame
is called, it records any information
on NA
handling in a "na.action"
attribute. Most
model-fitting functions return this as a component of their result.
Information from the action which was applied to object
if
NA
s were handled specially, or NULL
.
Chambers, J. M. and Hastie, T. J. (1992) Statistical Models in S. Wadsworth & Brooks/Cole.
options("na.action")
, na.omit
,
na.fail
, also for na.exclude
, na.pass
.
na.action(na.omit(c(1, NA)))