diag.maybe.null
From HH v3.1-8
by Richard Heiberger
Returns a value for the diagonal of NA and NULL arguments.
Returns the argument for the diagonal of NA and NULL arguments.
For all other arguments, it calls the regular diag
function.
- Keywords
- NA
Usage
diag.maybe.null(x, ...)
Arguments
- x
- matrix, vector, NA,
- ...
- Other arguments to
diag
.
See Also
Examples
diag.maybe.null(NULL)
diag.maybe.null(NA)
diag.maybe.null(1:5)
Community examples
Looks like there are no examples yet.