Skip to contents

OTIS c03 – Individuals by race x gender

Usage

morie_datasets_otis_c03_individuals_race_by_gender(
  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 of the requested dataset (a 0-row typed frame when the data is unavailable offline).

Examples

df <- morie_datasets_otis_c03_individuals_race_by_gender(offline = TRUE)
head(df[, c("Race", "Gender")])
#>          Race Gender
#> 1       White   Male
#> 2  Indigenous   Male
#> 3       Black Female
#> 4 South Asian   Male
#> 5       Other Female