block_matrix {migest} | 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
block_matrix(x = 1:16, b = c(2,3,4,2))
block_matrix(x = 1:25, b = c(2,3,4,2,1))