ARSAU CKAN sidecar helpers + tidy registry view (R-side companion to morie.arsau_datasets).
Source: R/arsau_datasets.R
arsau_datasets.RdThe main R-side loaders + registry list-of-lists already live in
R/arsau.R (morie_arsau_load_main_records(),
morie_arsau_load_individual_records(),
morie_arsau_load_probe_cycle_records(),
morie_arsau_load_weapon_records(),
morie_arsau_load_aggregate_summary(),
morie_arsau_load_detailed_dataset(), plus
ARSAU_REGISTRY(), ARSAU_YEARS(), ARSAU_KINDS(),
morie_arsau_read_sidecar(), morie_arsau_available_*(),
and morie_arsau_describe()). This file does NOT duplicate
those. It adds the remaining surface from the Python source:
Details
morie_arsau_registry_df: the registry as a tidydata.frame(one row per published file), the canonical R equivalent ofARSAU_REGISTRYin Python.morie_arsau_sidecar_schema: simplified[name, type, notes]extraction from a CKAN sidecar (mirrorsmorie.arsau_datasets.sidecar_schema).morie_arsau_sidecar_to_frame: convert the array-of-arraysrecordsbody of a CKAN sidecar to adata.framekeyed byfields[].id(mirrorsmorie.arsau_datasets.sidecar_to_frame).morie_arsau_read_xlsx_dictionary: read an Ontario-Catalogue XLSX data-dictionary sidecar (requires readxl; gated withrequireNamespace).morie_arsau_read_markdown_dictionary: read an Ontario-Catalogue Markdown data-dictionary sidecar with no extra dependencies.morie_arsau_ckan_url+morie_arsau_fetch_sidecar: build the upstream CKANdatastore_searchURL and (optionally) fetch the sidecar JSON via httr2.
References
Ontario Ministry of the Solicitor General. Data on Police Use
of Force in Ontario, 2020-2022 / 2023 / 2024 releases. Published
on the Ontario Data Catalogue:
https://data.ontario.ca/dataset/police-use-of-force-race-based-data.
CKAN datastore_search endpoint:
datastore_search (https://data.ontario.ca/).
Each annual release ships per-resource technical notes; the 2023
weapon_records release is explicitly flagged as containing
non-compliant data and the open-data file is renamed accordingly.