diag.maybe.null: Returns a value for the diagonal of NA and NULL arguments.

View source: R/ARIMA-trellis.R

diag.maybe.nullR Documentation

Returns a value for the diagonal of NA and NULL arguments.

Description

Returns the argument for the diagonal of NA and NULL arguments. For all other arguments, it calls the regular diag function.

Usage

diag.maybe.null(x, ...)

Arguments

x

matrix, vector, NA,

...

Other arguments to diag.

Author(s)

Richard M. Heiberger (rmh@temple.edu)

See Also

diag.

Examples

diag.maybe.null(NULL)
diag.maybe.null(NA)
diag.maybe.null(1:5)

HH documentation built on May 29, 2024, 6:24 a.m.

Related to diag.maybe.null in HH...