ssnap_cohorts: Create a cohort of SSNAP data

Description Usage Details

View source: R/ssnap_cohorts.R

Description

This function is a higher level interface to the generic create_cohorts functions.

Usage

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)

Details

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.


md0u80c9/SSNAPStats documentation built on Feb. 11, 2020, 11:43 a.m.