create_tmb_data: Create the data for 'TMB::MakeADFun()'

View source: R/create-tmb-data.R

create_tmb_dataR Documentation

Create the data for TMB::MakeADFun()

Description

Create the data for TMB::MakeADFun()

Usage

create_tmb_data(om = NULL, ss_model = NULL, yr = NULL, ...)

Arguments

om

Operating model output returned by the run_om() function

ss_model

A model input/output list representing the SS model as found in the RDS file created by create_rds_file()

yr

The year to trim the data to on the end of the time series of various objects

...

Absorbs arguments meant for other functions

Details

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().

Value

A list of 2 elements: the data and parameter values needed by TMB::MakeADFun()


pacific-hake/pacifichakemse documentation built on June 11, 2024, 4:07 a.m.