
End-to-end analysis of the ARSAU main_records CSV for one year.
Source:R/arsau_analyze.R
morie_arsau_analyze_main_records.RdChains:
mrm_uof_force_concentrationoverPoliceServicemrm_uof_weapon_diversityoverIncidentType x PoliceServicemrm_uof_data_quality_auditagainst the published CKAN sidecar (when present)
Details
Region-locality is NOT meaningful for main_records – only the
OPP_PoliceService_Region column is published, and it pairs
one column with itself. See
morie_arsau_analyze_detailed_dataset for the
2020-2022 layout that exposes more region columns.
References
Ontario Ministry of the Solicitor General, ARSAU 2023 and 2024 main_records technical release notes.
Examples
# \donttest{
res <- try(morie_arsau_analyze_main_records(year = "2024"))
if (!inherits(res, "try-error")) print(res)
#> ARSAU main_records analysis (2024)
#> ==================================
#> Call: morie_arsau_analyze_main_records(year=‘2024’)
#>
#> Year/range 2024
#> Kind main_records
#> Rows analysed 5
#> Columns analysed 23
#> Valid yes
#> Sub-analyses 3
#>
#> Warning: [force_concentration] Only 2 force(s); concentration statistics with n<10 categories are descriptive at best.
#> Warning: [incident_type_x_force] 6 of 6 expected cell(s) below 5; chi-square approximation may be unreliable.
#>
#> Ran 3 sub-analysis(es) over the ARSAU 'main_records' dataset for '2024': force_concentration, incident_type_x_force, data_quality. Each sub-result is available as `result$<name>` and the underlying data.frame as `result$data`.
# }