diag_inverse | R Documentation |
Invert a diagonal matrix which is passed as a vector. If any elements are zero, set them to one.
diag_inverse(x)
x |
a numeric vector |
a diagonal matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.