retroGetMDFR: Get a melted dataframe of model estimates from a list of...

View source: R/retroFunctions.R

retroGetMDFRR Documentation

Get a melted dataframe of model estimates from a list of retrospective model results

Description

This function extracts a melted dataframe from a list of retrospective model results.

Usage

retroGetMDFR(modsRetro, FUN, yadj = 0, ...)

Arguments

modsRetro
  • named list of resLst objects, with names corresponding to assessment years representing peels

FUN
  • rCompTCMs function used to extract the desired estimates (i.e., an extractMDFR function)

yadj
  • adjustment to extract correct max year in results, relative to assessment year-1

...
  • additional arguments passed to FUN

Details

Results are extracted using FUN for a retrospective series of tcsam02 model runs.

Value

dataframe

Note

The names of the resLst objects should correspond to the assessment year they represent. yadj should be 0 (the default) for results that end in the "max year" of the assessment, which is one less than the assessment year (e.g., recruitment, mature biomass). For results that end with the year of the assessment (e.g., survey biomass, numbers-at size), yadj should be 1.


wStockhausen/rCompTCMs documentation built on Aug. 27, 2024, 7:15 p.m.