View source: R/load-ss-extract-age-comps.R
load_ss_extract_age_comps | R Documentation |
Extract the age comp estimates from the SS assessment model output into a format required for input into the TMB assessment model
load_ss_extract_age_comps(
ss_model = NULL,
age_comps_fleet = 1,
start_yr = NULL,
end_yr = NULL,
age_comps_fill = -1,
yr_col = "yr",
age_comps_fleet_col = "fleet",
age_col = "age",
value_col = "50%",
...
)
ss_model |
SS model input/output as read in by |
age_comps_fleet |
1 for fishery, 2 for survey |
start_yr |
If not |
end_yr |
If not |
age_comps_fill |
Value to replace NAs in the table, it can also be
|
yr_col |
The name of the column in |
age_comps_fleet_col |
The name of the column in
|
... |
Arguments absorbed which are meant for other functions |
Proportions at age for each year are calculated and returned
The matrix representing all years from start_yr
to end_yr
with
data included for years which are found in the ss_model
data. Years
not in the ss_model
data will be filled with the value of
age_comps_fill
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.