Skip to contents

Staff-to-incidents bridging table

Usage

morie_datasets_corrections_uof_staff_incident(
  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_staff_incident()
head(df)
#>   year incident_ID  staff_ID
#> 1 2023  IN-2135823 ST-675029
#> 2 2023  IN-7488401 ST-675029
#> 3 2023  IN-6894828 ST-675029
#> 4 2023  IN-5579142 ST-153625
#> 5 2023  IN-2352566 ST-153625
#> 6 2023  IN-5219303 ST-153625