Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

diag.maybe.null

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

Examples

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

HH

Statistical Analysis and Data Display: Heiberger and Holland

v3.1-43
GPL (>= 2)
Authors
Richard M. Heiberger
Initial release
2020-11-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.