stripe_matrix {migest} | R Documentation |
Create a stripped matrix with non-uniform block sizes.
Description
Create a stripped matrix with non-uniform block sizes.
Usage
stripe_matrix(x = NULL, s = NULL, byrow = FALSE, dimnames = NULL)
Arguments
x |
Vector of numbers to identify each stripe. |
s |
Vector of values for the size of the stripes, order depending on |
byrow |
Logical value. If |
dimnames |
Character string of name attribute for the basis of the stripped matrix. If |
Value
Returns a matrix
with stripe sizes determined by the s
argument. Each stripe is filled with the same value taken from x
.
Author(s)
Guy J. Abel
See Also
Examples
stripe_matrix(x = 1:44, s = c(2,3,4,2), dimnames = LETTERS[1:4], byrow = TRUE)
[Package migest version 2.0.4 Index]