table_ci_posteriors: Make a latex table of credible intervals with columns for...

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

table_ci_posteriorsR Documentation

Make a latex table of credible intervals 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 credible intervals 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_ci_posteriors(
  model,
  start_yr,
  end_yr,
  scale = 1000,
  digits = 1,
  lower_col = "2.5%",
  upper_col = "97.5%",
  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

scale

Scale factor for biomasses and recruitments

digits

Number of decimal points to show in values in the table

lower_col

Column name in the data frames for the lower ci value

upper_col

Column name in the data frames for the upper ci value

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

csv_dir

Directory for CSV output

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 Jan. 14, 2025, 9:12 p.m.