Print Missing Value Information

DESCRIPTION:

Use missing value information to print details such as the number of rows omitted.

USAGE:

naprint(x, ...) 
naprint.default(...) 
naprint.exclude(...) 
naprint.omit(x) 

REQUIRED ARGUMENTS:

x
An object produced by an na.action function such as na.exclude. Typically this will be a component of a model object for which an na.action was specified.

VALUE:

A string giving a message providing missing value information, such as the number of rows omitted.

DETAILS:

Calls to this function should be added to the print and print.summary methods for modeling functions using an na.action. Note that the use of an na.action attribute (as described in the naresid help file) was predated by the use of an na.message attribute. Hence it is prudent to check for both of these attributes.

SEE ALSO:

,

EXAMPLES:

# Code from print.lm 
        if(!is.null(attr(x, "na.message"))) 
                cat(attr(x, "na.message"), "\n") 
        else if(!is.null(x$na.action)) 
                cat(naprint(x$na.action), "\n")