Skip to contents

Tabulates the number of SIU cases per police service per year, and optionally per reason_for_interaction stratum.

Usage

mrm_siu_per_service_rate(
  data,
  service_col = "police_service",
  incident_col = "date_of_incident_iso",
  stratify_col = NULL
)

Arguments

data

A data.frame in the SIU case schema.

service_col

Police-service column (default "police_service").

incident_col

Incident-date column for year extraction (default "date_of_incident_iso").

stratify_col

Optional second stratifying column.

Value

A data.frame with columns service, year, optional stratum, n_cases.

Examples

if (FALSE) {
  siu <- read.csv("SIU.csv")
  mrm_siu_per_service_rate(siu)
}