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

#ifndef S-Plus diag. #endif #ifdef S-Plus diag. #endif

Aliases
  • diag.maybe.null
Examples
diag.maybe.null(NULL)
diag.maybe.null(NA)
diag.maybe.null(1:5)
Documentation reproduced from package HH, version 3.1-19, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.