Landed catch by fleet and year table

table_landings(
  dat,
  unit_label = "mt",
  end_year = format(Sys.Date(), "%Y"),
  make_rda = FALSE,
  tables_dir = getwd()
)

Arguments

dat

A data frame returned from convert_output

unit_label

Abbreviated units of landings

end_year

Last year of assessment. Default is the current year.

make_rda

TRUE/FALSE; indicate whether to produce an .rda file containing a list with the figure/table, caption, and alternative text (if figure). If TRUE, the rda will be exported to the folder indicated in the argument "figures_dir". Default is FALSE.

tables_dir

The location of the folder containing the generated table rda files ("tables") that will be created if the argument `make_rda` = TRUE. Default is the working directory.

Value

Create a table ready for a stock assessment report of landed catch by fleet and year.

Examples

if (FALSE) { # \dontrun{
table_landings(dat)

table_landings(
  dat,
  unit_label = "landings label",
  end_year = 2024,
  make_rda = TRUE,
  tables_dir = getwd()
)
} # }