Returns a matrix with stripe sizes determined by the s argument. Each stripe is filled with the same value taken from x.
Arguments
x
Vector of numbers to identify each stripe.
s
Vector of values for the size of the stripes, order depending on byrow
byrow
Logical value. If FALSE (the default) the stripes are filled by columns, otherwise the stripes in the matrix are filled by rows.
dimnames
Character string of name attribute for the basis of the stripped matrix. If NULL a vector of the same length of s provides the basis of row and column names.