View source: R/process_weight_at_age-.R
process_weight_at_age | R Documentation |
Create weight-at-age files for the hake stock assessment. Updated csv or rds files must exist prior to running.
process_weight_at_age(
dir = hakedata_wd(),
maxage = 15,
yrs = 2008:hakedata_year(),
navgyears = 5,
nforecast = 4,
maturity = maturity_at_age
)
dir |
The directory where the data is stored.
It can either be relative or absolute because the working
directory will not be changed. Instead, |
maxage |
The age of the plus group used for the stock assessment. This will correspond to the maximum age group in the data, not in the model because SS can model many ages when there is only information in the data for a few ages. |
yrs |
A vector of years to search for recent data. Typically,
the vector starts with 2008 and ends with the most recent year
of data. This will allow files created from |
navgyears |
The number of early and late years to average since
1975 and |
nforecast |
The number of years to forecast into the future. Typically, this is three for the hake assessment and will lead to this many rows of mean weight-at-age data being copied to the data frame beyond the last year of empirical data. |
maturity |
A vector of maturity values from the maturity ogive. The length needs to be the same as the number of ages in the model, not the number of ages in the data. The default is to use the maturity ogive stored in the package. |
todo: document return
Ian G. Taylor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.