View source: R/ssnap_cohorts.R
This function is a higher level interface to the generic create_cohorts functions.
1 2 3 | ssnap_cohorts(ssnap_data, cohort, period_type = c("months", "periods",
"financialyears"), aggregate_by = c("national", "team"),
convert_team_codes = TRUE, filters = NULL)
|
Using the list of named cohort outputs in ssnap_cohort_names
it matches the correct cohort selection to the correct type of
operation and list of outputs, simplifying the eventual code in
reports and outputs.
You can still roll your own outputs by using the generic
create_outputs
functions and supplying inputs from
ssnap_cohort_definitions
, outputs from
ssnap_audit_output_specs
or even building your own custom
output spec from ssnap measures
depending upon how much
control and customisation you need.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.