Biomass, abundance, and catch time series table

table_bnc(
  dat,
  end_year = format(Sys.Date(), "%Y"),
  biomass_unit_label = "mt",
  catch_unit_label = "mt",
  sb_unit_label = "mt",
  make_rda = FALSE,
  tables_dir = getwd()
)

Arguments

dat

A data frame returned from convert_output

end_year

Last year of assessment. Default is the current year.

biomass_unit_label

abbreviated units for biomass

catch_unit_label

abbreviated units for catch

sb_unit_label

abbreviated units for spawning biomass

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 of biomass, abundance, catch, and spawning biomass through all years of the assessment model output translated to a standard structure.There are options to return a [flextable::flextable()] object or export an rda object containing associated caption for the table.

Examples

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

table_bnc(dat,
  end_year = 2024,
  biomass_unit_label = "b label",
  catch_unit_label = "catch label",
  make_rda = TRUE,
  tables_dir = getwd()
)
} # }