Inspired by Valerio Bartolino and North Sea herring
SSmakeMmatrix(
mat,
startyr,
outfile = NULL,
overwrite = FALSE,
yrs.in.columns = TRUE
)
a matrix of natural mortality by year and age, starting with age 0
the first year of the natural mortality values (no missing years)
optional file to which the results will be written
if 'outfile' is provided and exists, option to overwrite or not
an indicator of whether the matrix has years in columns or rows
Prints inputs with option to write to chosen file