calc_fishery_ages: Load data and create age compositions for the fishery

View source: R/utils-calc-fishery-ages.R

calc_fishery_agesR Documentation

Load data and create age compositions for the fishery

Description

Uses loaded age data from each fleet to create the age-composition data for the Stock Synthesis file after weighting by catch and weight-at-age. The weight-at-age information is passed as a function argument and subset for fleet 1 and the catch data is available internally in the package.

Usage

calc_fishery_ages(weight_at_age)

Arguments

weight_at_age

A data frame read in by r4ss::SS_readwtatage() for the current year's model.

Details

TODO:

  1. Weight-at-age is summed over all ages 0–20 but ages are not available for 16+?

Value

A data frame is returned that is appropriate for using in a Stock Synthesis data file for the age-composition section.

Author(s)

Kelli F. Johnson


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