table_decision | R Documentation |
rows_to_label
and
row_labels
need changing each year.Create the Executive Summary decision tables. rows_to_label
and
row_labels
need changing each year.
table_decision(
model,
type = c("biomass", "spr"),
forecast_inds = seq_along(model$forecasts[[length(model$forecasts)]]),
rows_to_show = NULL,
letter_df = tribble(~let, ~row1_text, ~row2_text, "a", "", "", "b", "", "", "c", "",
"", "d", "10\\% reduction", "each year", "e", paste0(model$endyr, " catch"), "",
"f", "", "", "g", "10\\% reduction", "each year", "h", "", "", "i",
"10\\% reduction", "each year", "j", "", "", "k", paste0(model$endyr - 1, " TAC"),
"", "l", paste0(model$endyr, " TAC"), "", "m", "Fishing intensity", "at 100\\%",
"n", "Default HR", paste0("(", fspr_40_10_for_latex_table, ")"), "o", "Equal catch",
paste0("($\\mathrm{C}_{", model$endyr +
1, "} \\approxeq \\mathrm{C}",
"_{", model$endyr + 2, "}$)")),
bold_letters = TRUE,
digits = 2,
left_col_cm = 1,
right_cols_cm = 1,
font_size = 10,
header_font_size = 10,
header_vert_spacing = 12,
header_vert_scale = 1.2,
...
)
model |
A model, created by |
type |
One of |
forecast_inds |
The indices to use in the |
rows_to_show |
A vector of letters of rows to show. If |
letter_df |
A data frame with three columns called |
bold_letters |
Logical. If |
digits |
The number of decimal points to show in the table |
left_col_cm |
Number of centimeters wide to make the leftmost column. This needs to be changed when the font size is changed |
right_cols_cm |
Number of centimeters wide to make the 3 rightmost columns wide. This needs to be changed when the font size is changed |
font_size |
The table data and header font size in points |
header_font_size |
The font size for the headers only. If |
header_vert_scale |
Scale factor to create the vertical spacing value.
See |
... |
Arguments passed to |
vert_spacing |
The vertical spacing between newlines for this font.
If |
An knitr::kable()
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.