utils_update_catch_sums: Updates the most recent catch time values stored in...

View source: R/utils-update-catch-sums.R

utils_update_catch_sumsR Documentation

Updates the most recent catch time values stored in data-tables/<>.csv

Description

Read monthly catch time series for each fleet and report their summary values in the appropriate csv files stored in data-tables.

Usage

utils_update_catch_sums(
  dir_data = here::here("data-tables"),
  digits = 5,
  values_prev_assess = c(NA, NA, NA)
)

Arguments

dir_data

A path leading to data-tables where the csv files for the stock assessment are stored.

digits

An integer specifying how many significant digits you want to save in the stored files. The default is 5.

values_prev_assess

A vector of three values,

  • estimate of spawning biomass for terminal year in 1000s mt,

  • estimate of depletion in percent with one decimal place,

  • estimate of TAC for the first year of the forecast period in mt rounded to the nearest whole number.

Value

The following two files are updated in the data-tables:

  • landings-tac-history.csv

  • catch-targets-biomass.csv

Author(s)

Kelli F. Johnson


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.