Grow matrix to certain dimensions
grow.Rd
Grow matrix to certain dimensions
grow(M, nrow, ncol, just = "tl", fillWith = "")
Arguments
M | matrix. |
---|---|
nrow | number of requested rows of the output. |
ncol | number of requested columns of the output. |
just | string to control where "M" is placed within the larger matrix. Possible values are "t" (top), "b" (bottom), "l" (left) and "r" (right) which can be combined, e.g. "tl", "br", etc.. |
fillWith | character or number which is used for filling the empty spots |
Value
Matrix with dimensions "nrow" and "ncol" accomodating the original matrix "M".