block_matrix | R Documentation |
Creates a matrix
with differing size blocks
block_matrix(x = NULL, b = NULL, byrow = FALSE, dimnames = NULL)
x |
Vector of numbers to identify each block. |
b |
Numeric value for the size of the blocks within the matrix ordered depending on |
byrow |
Logical value. If |
dimnames |
Character string of name attribute for the basis of the block matrix. If |
Returns a matrix
with block sizes determined by the b
argument. Each block is filled with the same value taken from x
.
Guy J. Abel
stripe_matrix
block_matrix(x = 1:16, b = c(2,3,4,2))
block_matrix(x = 1:25, b = c(2,3,4,2,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.