
Institution-level annual incident summary
Source:R/corrections_uof.R
morie_datasets_corrections_uof_institution_summary.RdInstitution-level annual incident summary
Usage
morie_datasets_corrections_uof_institution_summary(
offline = TRUE,
resource_id = NULL,
source = NULL
)Arguments
- offline
Logical;
TRUE(default) reads the included real CKAN sample atinst/extdata/corrections_uof_incidents_sample.csv.FALSEhits the live CKAN endpoint.- resource_id
Optional CKAN resource id override.
- source
One of
"auto","live","included","synthetic","empty"; takes precedence overofflinewhen supplied.
Value
A data.frame of the requested dataset (a 0-row typed frame when the data is unavailable offline).
Examples
df <- morie_datasets_corrections_uof_institution_summary()
head(df)
#> year region institution number_of_incidents
#> 1 2023 Central Hamilton-Wentworth Detention Centre 205
#> 2 2023 Central Maplehurst Correctional Complex 624
#> 3 2023 Central Niagara Detention Centre 127
#> 4 2023 Central Vanier Centre for Women 214
#> 5 2023 Eastern Brockville Jail 36
#> 6 2023 Eastern Central East Correctional Centre 357
#> number_unique_inmate_participant number_unique_staff_participant
#> 1 287 186
#> 2 758 429
#> 3 168 115
#> 4 176 180
#> 5 35 62
#> 6 482 327
#> use_of_force_rate
#> 1 11.0
#> 2 14.3
#> 3 14.1
#> 4 23.1
#> 5 18.6
#> 6 8.8