table_at_age: Makes a table of the estimated -at-age values for 5 different...

View source: R/table-at-age.R

table_at_ageR Documentation

Makes a table of the estimated -at-age values for 5 different values: Numbers-at-age, Catch-at-age, Biomass-at-age, Exploitation-at-age, and Catch-at-age-biomass

Description

Makes a table of the estimated -at-age values for 5 different values: Numbers-at-age, Catch-at-age, Biomass-at-age, Exploitation-at-age, and Catch-at-age-biomass

Usage

table_at_age(
  model,
  start_yr = NA,
  end_yr = NA,
  type = c("naa", "eraa", "caan", "caab", "baa"),
  digits = 0,
  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

type

naa = Numbers-at-age, eraa = Exploitation-rate-at-age, caan = Catch-at-age-number, caab = Catch-at-age-biomass, baa = Biomass-at-age

digits

Number of decimal points to show in values in the table

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 Nov. 8, 2024, 1:16 p.m.