write_wtatage_file: Write weight-at-age file

View source: R/weight_at_age-.R

write_wtatage_fileR Documentation

Write weight-at-age file

Description

Write weight-at-age file

Usage

write_wtatage_file(
  file = paste0("wtatage_", format(Sys.time(), "%d-%b-%Y_%H.%M"), ".ss"),
  data,
  maturity,
  n_fleets = 2
)

Arguments

file

A filename that you want to save the information as. The default is to have an extension of .ss such that the file can be used for Stock Synthesis. The file path can either be relative or absolute.

data

Weight at age matrix.

maturity

A vector of maturity at age.

n_fleets

An integer specifying the number of fleets that are in the model. The default is two, e.g., one fishery and one survey. When the age-1 index is also included in the model, then this value should be changed to 3, e.g., one fishery, age 2+ survey, and relative age-1 index of abundance.


pacific-hake/hake-assessment documentation built on April 11, 2025, 8:43 p.m.