Skip to contents

Use-of-force incidents (head dataset)

Usage

morie_datasets_corrections_uof_incidents(
  offline = TRUE,
  resource_id = NULL,
  source = NULL
)

Arguments

offline

Logical; TRUE (default) reads the included real CKAN sample at inst/extdata/corrections_uof_incidents_sample.csv. FALSE hits the live CKAN endpoint.

resource_id

Optional CKAN resource id override.

source

One of "auto", "live", "included", "synthetic", "empty"; takes precedence over offline when supplied.

Value

data.frame.

References

https://data.ontario.ca/dataset/use-of-force-in-correctional-institutions; Open Government Licence – Ontario.

Examples

df <- morie_datasets_corrections_uof_incidents()
head(df)
#>   year incident_ID status
#> 1 2023  IN-6447091  Final
#> 2 2023  IN-6465395  Final
#> 3 2023  IN-5156259  Final
#> 4 2023  IN-7390784  Final
#> 5 2023  IN-4390997  Final
#> 6 2023  IN-8235251  Final