A function that uses the file location of a fitted SS3 model including input files to population the various slots of an Data object.
SS2DataMOM(SSdir, age_M = NULL, comp_partition = 2, silent = FALSE, ...)
A nested list of Data objects, with the first index by stock/sex and the second index by fleet.
A folder with Stock Synthesis input and output files in it. Alternatively,
A vector of ages to average across to calculate a single value of natural mortality.
Currently, the Data object supports a single value of M for all ages. By default, NULL
averages over all ages.
Integer vector for selecting length/age observations that are retained (2), discarded (1), or both (0). By default, only retained comps are used. If multiple codes are used, then comp matrix is the sum over all codes.
Logical. Suppress messages?
Arguments to pass to SS_output
Q. Huynh
SS2MOM