calc_catch_seas_country: Calculate the catch proportions by country, year, and season

View source: R/utils-calc-catch-seas-country.R

calc_catch_seas_countryR Documentation

Calculate the catch proportions by country, year, and season

Description

Calculate the catch proportions by country, year, and season

Usage

calc_catch_seas_country(
  data_tables_url = NULL,
  n_yrs = 10,
  weight = c(1, 1, 1, 1),
  ...
)

Arguments

n_yrs

If NULL, a data frame containing all years of data with proportions of catch by season will be returned. If this is a number, it is the number of years at the end of the data to average the proportions by season for. In this case, the data frame will be only 8 rows long, without any year column

weight

A vector of 4 for the weights given to each season

...

Absorbs arguments meant for other functions

ss_model_data_csv_dir

The directory in which the assessment csv files containing catch by month are located. Can be a URL

Value

If n_yrs is NULL, a data frame containing all years of data with proportions of catch by country and season. If n_yrs is a number, the data frame returned will be only 8 rows long, 4 rows per country, without any year column


pacific-hake/pacifichakemse documentation built on June 11, 2024, 4:07 a.m.