build a sparse block matrix of 1's along the diagonal, based on a vector of block sizes
1 | sparse_block_matrix(blocks, values = 1)
|
blocks |
A vector of integers corresponding to block sizes, from top left to bottom right (along the diagonal) |
values |
A vector of values for each block or a single value for all blocks. Default is 1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.