na.action               package:stats               R Documentation

NA Action

Description:

     'na.action' is a generic function, and 'na.action.default' its
     default method (which extracts the '"na.action"' attribute).

Usage:

     na.action(object, ...)

Arguments:

  object: any object whose 'NA' action is given.

     ...: further arguments special methods could require.

Value:

     The action which will be applied to 'object' whenever 'NA's are
     not desired.

References:

     Chambers, J. M. and Hastie, T. J. (1992) _Statistical Models in
     S._ Wadsworth & Brooks/Cole.

See Also:

     'options("na.action")', 'na.omit', 'na.fail', also for
     'na.exclude', 'na.pass'.

Examples:

     na.action(c(1, NA))

