DIAG | R Documentation |
This function returns a diagonal matrix using the input vector or number as diagonal.
DIAG(e)
e |
Diagonal element. Can be a vector or a number |
A square diagonal matrix using the input as diagonal elements
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.