View source: R/matrix_helpers.R
spDiag | R Documentation |
Create sparse diagonal matrix with vector x on diagonal
spDiag(v)
v |
Vector to use as the diagonal of the matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.