Skip to contents

OTIS b01 – Segregation detailed (per-individual episodes)

Usage

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

Arguments

offline

If TRUE (default), read the included synthetic fixture. If FALSE, hit Ontario CKAN (resource_id required).

resource_id

Optional CKAN resource id (required for live).

source

One of NULL (default, ships an empty 0-row frame with the documented schema when no real CKAN row is included), "real" (force the real CKAN sample included in inst/extdata/, error if absent), or "synth" (return a deterministic set.seed() synthetic for didactic examples).

Value

A data.frame with the canonical 18-col schema.

Examples

df <- morie_datasets_otis_b01_segregation_detailed(offline = TRUE)
head(df[, c("EndFiscalYear", "Gender",
            "NumberConsecutiveDays_Segregation")])
#>   EndFiscalYear Gender NumberConsecutiveDays_Segregation
#> 1          2022   Male                                 7
#> 2          2022 Female                                15
#> 3          2023   Male                                22
#> 4          2023   Male                                 5
#> 5          2024 Female                                30