table_decision_original: Create the Executive Summary decision tables. 'rows_to_label'...

View source: R/table-decision-original.R

table_decision_originalR Documentation

Create the Executive Summary decision tables. rows_to_label and row_labels need changing each year.

Description

Create the Executive Summary decision tables. rows_to_label and row_labels need changing each year.

Usage

table_decision_original(
  model,
  font_size = 9,
  space_size = 10,
  type = "biomass",
  placement = "H",
  forecast_inds = seq_along(model$forecasts[[length(model$forecasts)]]),
  rows_to_show = NULL,
  rows_to_label = c("e", "f", "h", "j", "l", "m", "n", "o"),
  row_labels = list(c("10\\%", "reduction"), c(assess_yr - 1, "catch"), c("10\\%",
    "reduction"), c("10\\%", "reduction"), c(assess_yr - 1, "TAC"), c("FI=",
    "100\\%"), c("default", "HR"), c(paste0("C", assess_yr, "="), paste0("C",
    assess_yr + 1))),
  ...
)

Arguments

model

An mcmc run, model$forecasts must be populated from run_forecasts()

font_size

Size of the font for the table

space_size

Size of the vertical spaces for the table

type

Type to build. biomass or spr

placement

Latex code for placement of table

forecast_inds

Indices of forecast catch levels to show. By default all catch levels will be shown

rows_to_show

A vector of letters of rows to show. If NULL, show all rows

rows_to_label

A vector of letters representing rows to add custom labels to

row_labels

A list of length two vectors with text to place in the empty

...

arguments passed to xtable::xtable()

Value

The latex code needed to build the table


pacific-hake/hake-assessment documentation built on Nov. 8, 2024, 1:16 p.m.