unroll returns a matrix where elements of x
are concatenated (“unrolled”) by row (bycol = FALSE) or
by column (bycol = TRUE). NA is used to make
rows/columns of equal length.
Vectors and one dimensional arrays are coerced to row
matrices.
See Also
This function was originally written for use in
severity.portfolio.