Skip to contents

Create a data.frame with time-series information by simulation and year

Usage

get_at_age_ts(
  x,
  variable = "Spawning Biomass",
  model = "Model 1",
  scale = NULL
)

Arguments

x

An object of class Hist, MSE, or a list of Hist or MSE objects

variable

A character string with a valid name for a time-series variable. Use valid_ts_variables() for valid variable names.

model

An optional name for the model. If x is a list of objects, model will be taken from names(x). If names(x) is NULL, model will be given sequential numerical values (e.g., Model 1, Model 2, ...)

scale

An optional function with a single numeric argument that returns transformed or scaled numeric values. See lb2kg and kg2lb for example. Can be a list of functions for list objects (NA for no transformation)