Skip to contents

Chains:

Usage

morie_arsau_analyze_main_records(year, language = "en", data_dir = NULL)

Arguments

year

2023 or 2024.

language

"en" or "fr".

data_dir

Optional explicit ARSAU root.

Value

A list classed c("morie_arsau_result", "morie_rich_result", "list").

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`. 
# }