table_median_posteriors: Make a latex table of medians with columns for female...

View source: R/table-median-posteriors.R

table_median_posteriorsR Documentation

Make a latex table of medians with columns for female spawning biomass, relative spawning biomass, total biomass, age 2+ biomass, age-0 recruits, relative fishing intensity, and exploitation fraction. Also output a CSV file with the table contents.

Description

Make a latex table of medians with columns for female spawning biomass, relative spawning biomass, total biomass, age 2+ biomass, age-0 recruits, relative fishing intensity, and exploitation fraction. Also output a CSV file with the table contents.

Usage

table_median_posteriors(
  model,
  start_yr = NULL,
  end_yr = NULL,
  digits = 1,
  scale = 1000,
  csv_dir = here::here("doc", out_csv_path),
  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()

start_yr

Start year in table

end_yr

End year in table

digits

Number of decimal points to show in values in the table

scale

Scale factor for biomasses and recruitments

csv_dir

Directory for CSV output

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

Value

An knitr::kable() object


pacific-hake/hake-assessment documentation built on July 21, 2024, 8:19 a.m.