block_matrix {migest} | R Documentation |
Create a block matrix with non-uniform block sizes.
Description
Creates a matrix
with differing size blocks
Usage
block_matrix(x = NULL, b = NULL, byrow = FALSE, dimnames = NULL)
Arguments
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 |
Value
Returns a matrix
with block sizes determined by the b
argument. Each block is filled with the same value taken from x
.
Author(s)
Guy J. Abel
See Also
Examples
block_matrix(x = 1:16, b = c(2,3,4,2))
block_matrix(x = 1:25, b = c(2,3,4,2,1))
[Package migest version 2.0.4 Index]