calc_retro_stats: Add a new year of biomass dispersion stats to the CSV file...

View source: R/utils-calc-retro-stats.R

calc_retro_statsR Documentation

Add a new year of biomass dispersion stats to the CSV file holding all years and return the data frame

Description

Add a new year of biomass dispersion stats to the CSV file holding all years and return the data frame

Usage

calc_retro_stats(
  model,
  yr = year(Sys.Date()),
  fn = here("data-tables", "assessment-history-dispersion.csv")
)

Arguments

model

A model object

yr

The year to calculate the statistics for

Details

Adds the current year to the CSV file if it is not present in it

Value

The contents of the ⁠data-tables/"assessment-history-dispersion.csv⁠ file, after adding a new year if necessary


pacific-hake/hake-assessment documentation built on July 21, 2024, 8:19 a.m.