# Grow matrix to certain dimensions

Grow matrix to certain dimensions

grow(M, nrow, ncol, just = "tl", fillWith = "")

## Arguments

M matrix. number of requested rows of the output. number of requested columns of the output. 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.. character or number which is used for filling the empty spots

## Value

Matrix with dimensions "nrow" and "ncol" accomodating the original matrix "M".