Extract or replace the diagonal of a matrix, or construct a diagonal matrix. Implemented much the same as in R base.
signature(x = "ANY")
signature(x = "gmatrix")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.