table_survey_history: Create a table of the acoustic survey history

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

table_survey_historyR Documentation

Create a table of the acoustic survey history

Description

Create a table of the acoustic survey history

Usage

table_survey_history(
  model,
  d,
  vessel_sep_lines = FALSE,
  digits = 3,
  font_size = 10,
  header_font_size = 10,
  header_vert_spacing = 12,
  header_vert_scale = 1.2,
  ...
)

Arguments

model

A model, created by create_rds_file()

d

A data frame containing the survey history as read in from the file survey-history.csv

vessel_sep_lines

Logical. If TRUE, place a line under the vessels in each cell as a way to separate them vertically from the years above and below

digits

Number of decimal places

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()

vert_spacing

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

Details

The vessel names need to be fixed. They are seperated by spaces, and may or may not have dashes in their names. The dashes will be replaced with spaces, and the spaces will be replaced by newlines in the output

Value

A knitr::kable() object


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