Convert a matrix of natural mortality values into inputs for Stock Synthesis
Source:R/SSmakeMmatrix.R
SSmakeMmatrix.Rd
Inspired by Valerio Bartolino and North Sea herring
Arguments
- mat
a matrix of natural mortality by year and age, starting with age 0
- startyr
the first year of the natural mortality values (no missing years)
- outfile
optional file to which the results will be written
- overwrite
if 'outfile' is provided and exists, option to overwrite or not
- yrs.in.columns
an indicator of whether the matrix has years in columns or rows