diag.maybe.null

0th

Percentile

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

diag in R, diag in S-Plus.

Aliases
  • diag.maybe.null
Examples
diag.maybe.null(NULL)
diag.maybe.null(NA)
diag.maybe.null(1:5)
Documentation reproduced from package HH, version 2.1-5, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.