naprint
Print Missing Value Information

Description

Prints details, such as the number of rows omitted, that are derived from missing value information.

Usage

naprint(x, ...)
## Default S3 method:
naprint(x, ...) 
## S3 method for class 'exclude':
naprint(x, ...) 
## S3 method for class 'omit':
naprint(x, ...)

Arguments

x An object created by an na.action function such as na.exclude. Typically this is a component of a model object for which an na.action was specified.
... Other methods may use more arguments, but the basic methods listed here do not.

Details

Calls to this function should be added to the print and print.summary methods for modeling functions using an na.action.
This function is an S Version 3 generic and includes method functions naprint.default, naprint.exclude, and naprint.omit.
Value
returns a character string that provides a message with missing value information such as the number of rows omitted.
See Also
na.exclude, naresid
Examples

df <- data.frame(a = 1:5, b = (1:5)^2, c = c((1:4)^2, NA), d = c((1:3)^2, NA, NA)) naprint(attr(na.exclude(df), "na.action")) naprint(na.action(na.omit(df))) naprint(na.action(na.pass(df)))

Package stats version 6.1.1-7
Package Index