make_sparse_diagonal_matrix | R Documentation |
Make a CSC sparse diagonal matrix
make_sparse_diagonal_matrix(size, diagonal = NULL)
size |
number of rows or columns |
diagonal |
if specified, the diagonal values, in which case size is ignored |
a compressed sparse column diagonal matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.