set_diag | R Documentation |
This function simply assigns value
to diagonal of x
and returns
x
.
set_diag(x, value)
x |
a square matrix. |
value |
a value or a vector (recycled to the required length). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.