table_sampling_history: Creates a table of the sampling history for hake

View source: R/table-sampling-history.R

table_sampling_historyR Documentation

Creates a table of the sampling history for hake

Description

Creates a table of the sampling history for hake

Usage

table_sampling_history(
  start_yr,
  end_yr,
  replace_start_yr = NULL,
  font_size = 10,
  header_font_size = 10,
  header_vert_spacing = 12,
  header_vert_scale = 1.2,
  ...
)

Arguments

start_yr

Start year in table

end_yr

End year in table

replace_start_yr

The first year to replace in the csv file using the age data frames for each fleet. All data for this year to end_yr will be replaced in the "data-tables/fishery-sampling-history.csv" file. If NULL, the file is not loaded and sampling_history_df is used instead.

font_size

The table data and header font size in points

header_font_size

The font size for the headers only. If NULL, the headers will have the same font size as the table cell data

header_vert_scale

Scale factor to create the vertical spacing value. See header_vert_spacing

...

Arguments passed to knitr::kable()

d

Data frame as found in sampling_history_df

vert_spacing

The vertical spacing between newlines for this font. If NULL this will be calculated as header_font_size * header_vert_scale

Value

A knitr::kable() object


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