Per-police-service tabulation of case counts, charges-recommended counts, and the implied charge rate. Sorted by case count (descending), capped at the top 30 in the rendered table.
Arguments
- data
Either a data frame (e.g. the output of
morie_fetch_siu()read in) or a path toSIU_by_case.csv.NULL(the default) looks infile.path(tempdir(), "morie", "siu", "SIU_by_case.csv").
Examples
df <- data.frame(
police_service = c("Toronto Police Service", "Toronto Police Service",
"Ontario Provincial Police", "Peel Regional Police"),
charges_recommended = c(TRUE, FALSE, FALSE, TRUE))
r <- morie_siu_by_police_service(df)
r$title
#> [1] "SIU cases by police service"
