This helper extracts age- and year-specific quantities from a list of future projection results and returns them in a long table. It is intended for post-assessment comparisons across assessment years.

get_assessment_age_component_data(
  future.list,
  assessment.years,
  component = c("selectivity", "F", "weight", "maturity", "number"),
  value_fun = mean,
  estimate_label = NULL,
  prediction_label = "Predicted"
)

Arguments

future.list

A list of future result objects.

assessment.years

Numeric or character vector of assessment years. Its length must match `future.list`.

component

Character scalar. One of `"selectivity"`, `"F"`, `"weight"`, `"maturity"`, or `"number"`.

value_fun

Function used to summarise across simulations. Defaults to [mean()].

estimate_label, prediction_label

Labels used for years before and after the assessment year.

Value

A tibble with columns `age`, `year`, `value`, `assess_year`, `type`, and `Assess`.