Build a synthetic Corrections-UoF data.frame for testing.
Source:R/corrections_uof.R
morie_synth_corrections_uof.RdReturns a small data.frame mirroring the column shape of the
published corrections-UoF resource for the given short key.
Schemas are derived from the bundled
inst/extdata/corrections_uof_dictionary.json (parsed from
datadictionary_correctionsribd_en_fr20250822.xlsx). Values
are uniformly drawn from the dictionary "Data Values" examples
or generic ranges; used only for offline-no-fixture fallback in
tests and demos. NOT a substitute for the real upstream data
published at https://data.ontario.ca/dataset/use-of-force-in-correctional-institutions.
Arguments
- key
Character; one of the 12 short names returned by
morie_corrections_uof_resource_ids.- n
Integer; number of synthetic rows. Default 30.
- seed
Integer; RNG seed. Default 1.
See also
morie_datasets_corrections_uof_incidents and
the 11 sibling loaders.
Examples
df <- morie_synth_corrections_uof("incidents", n = 10)
nrow(df)
#> [1] 10