View source: R/stripe_matrix.R
stripe_matrix | R Documentation |
Create a stripped matrix with non-uniform block sizes.
stripe_matrix(x = NULL, s = NULL, byrow = FALSE, dimnames = NULL)
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 |
Returns a matrix
with stripe sizes determined by the s
argument. Each stripe is filled with the same value taken from x
.
Guy J. Abel
block_matrix
, ipf2_stripe
stripe_matrix(x = 1:44, s = c(2,3,4,2), dimnames = LETTERS[1:4], byrow = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.