Skip to contents

Build the pollock biomass-at-length table used in winter GOA reports. The data used here is usually limited to the 'selectivity-corrected era' within Shelikof Strait (i.e. 2008-current). This function will report all lengths from 5-76 cm, and will do so for any region that was defined for the analysis. If you have an especially small (<5 cm) or large (>76 cm) length class, the table will report these sizes as opposed to the nomimal 5 cm- 76 cm range.

Usage

build_biomass_at_length_table_winter_goa(
  biomass_nums_length_data,
  region_name,
  include_n_years = NULL
)

Arguments

biomass_nums_length_data

The name of the dataframe that contains all the abundance-at-length values; this dataframe is created in the cruise report markdown process using the function get_total_biomass_by_length.R; this provides all the data that is then used to create a dataframe named shelikof_sel_corr_surveys_totals_by_length_and_region. This dataframe is the easiest input to build_biomass_at_length_table_winter_goa function.

region_name

The name of the reporting region that you want to include in this table (generally "Shelikof Strait" in winter GOA reports)

include_n_years

(optional) number of recent years to include in this table. This is useful for long survey time series where you may not need to present all the available years in the table. If not used, all years in the biomass_nums_length_data will be included.

Value

A list with two items: item 1 is the Flextable table object, item 2 is the table caption.

Author

Mike Levine

Examples

if (FALSE) { # \dontrun{
# build the table and the caption
biomass_table_list <- build_biomass_at_length_table_winter_goa(
  biomass_nums_length_data = shelikof_sel_corr_surveys_totals_by_length_and_region,
  region_name = "Shelikof Strait"
)

# pull out the table and caption from the list
biomass_length_table <- biomass_table_list[[1]]
biomass_length_caption <- biomass_table_list[[2]]
} # }