canada_create_fleet_year_catch_csv_files: Calculate the catch by year and fishery for Canadian...

View source: R/utils-canada-create-fleet-year-catch-csv-files.R

canada_create_fleet_year_catch_csv_filesR Documentation

Calculate the catch by year and fishery for Canadian fisheries

Description

Calculate the catch by year and fishery for Canadian fisheries

Usage

canada_create_fleet_year_catch_csv_files(
  lst,
  catch_scale = 1000,
  write_file = TRUE,
  digits = 2
)

Arguments

lst

A list as returned by canada_extract_fleet_catch()

catch_scale

A value to divide the catch by prior to writing to the file

write_file

If TRUE, write the output to the data file given by the package data variable can_catch_by_year_fn. If FALSE, return the data frame

digits

The number of decimal places to include in the table output

Value

If write_file is TRUE, nothing. If write_file is FALSE, a data frame containing the catch by year (rows) and fishery type (columns)


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