View source: R/utils-top-coh.R
top_coh | R Documentation |
num_cohorts
cohorts by year and
percentage as a sentenceCreate text describing the top num_cohorts
cohorts by year and
percentage as a sentence
top_coh(
model = NULL,
yr = year(Sys.Date()),
num_cohorts = 3,
decimals = 0,
cap = TRUE,
use_catage = FALSE,
fleet = 1,
ret_cohort = NA
)
model |
The model as returned from |
yr |
the year to calculate the cohort catch percentages for |
num_cohorts |
The top |
decimals |
The number of decimal points to use |
cap |
Logical. Capitalize the first word in the sentence? |
use_catage |
Logical. If |
fleet |
A integer value allowing the selection of a given fleet, where
|
ret_cohort |
If not |
top_coh(base_model, 2020, 2022, 2) produces: "The 2020 cohort was the largest (33\%), followed by the 2016 cohort (24\%)"
Text describing the top num_cohorts
cohorts by year and
percentage as a sentence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.