Skip to contents

Inmate-participant demographics (head)

Usage

morie_datasets_corrections_uof_inmate_participant(
  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

A data.frame of the requested dataset (a 0-row typed frame when the data is unavailable offline).

Examples

df <- morie_datasets_corrections_uof_inmate_participant()
head(df)
#>   year       inmate_ID force_used
#> 1 2023 IP-566982894846        Yes
#> 2 2023 IP-283929742188    Unknown
#> 3 2023 IP-416569886294    Unknown
#> 4 2023 IP-267628717414        Yes
#> 5 2023 IP-990111162085        Yes
#> 6 2023 IP-331818754441        Yes