View source: R/create-tmb-data.R
create_tmb_data | R Documentation |
TMB::MakeADFun()
Create the data for TMB::MakeADFun()
create_tmb_data(om = NULL, ss_model = NULL, yr = NULL, ...)
om |
Operating model output returned by the |
ss_model |
A model input/output list representing the SS model as
found in the RDS file created by |
yr |
The year to trim the data to on the end of the time series of various objects |
... |
Absorbs arguments meant for other functions |
This function mostly modified objects used in the OM which are
data.frame and array types to be matrix and vector types that
are required by TMB. It should be called on each iteration of the MSE
loop before the call to TMB::MakeADFun()
.
A list of 2 elements: the data and parameter values needed
by TMB::MakeADFun()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.