table_catch_fleet: Return a table by fleet, where the fleets are determined by...

View source: R/table-catch.R

table_catch_fleetR Documentation

Return a table by fleet, where the fleets are determined by the ... argument as data frames

Description

Return a table by fleet, where the fleets are determined by the ... argument as data frames

Usage

table_catch_fleet(
  catch_df_lst = NULL,
  fleet_nms = NULL,
  start_yr = NULL,
  gear_col_widths = "5em",
  scale_factor = 1000,
  ret_df = FALSE,
  show_total_col = TRUE,
  bold_headers = TRUE,
  ...
)

Arguments

catch_df_lst

A list of data frames with catch, one for each fleet which have had gfplot::tidy_catch() applied

fleet_nms

A vector of names for the fleets, to appear on the table. Must be the same length as catch_df_lst

start_yr

The year to start the table or NULL to include all data

gear_col_widths

Width to make the columns for the gear types

scale_factor

Value to divide all the catches by to make the table in tonnes

ret_df

If TRUE return a data frame, if FALSE, return an csasdown::csas_table()

show_total_col

If TRUE, show a column with the total landings and discards for all fleets

bold_headers

If TRUE, make all column headers bold

...

Arguments to pass to csasdown::csas_table()


pbs-assess/gfiscamutils documentation built on Oct. 24, 2024, 1:37 p.m.