Skip to contents

The probe-cycle file is intentionally narrow (BatchFileName + Indiv_Index + a comma-separated cycle string). This function computes the cycle-count distribution per incident and runs a data-quality audit.

Usage

morie_arsau_analyze_probe_cycle_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").

References

Ontario Ministry of the Solicitor General, ARSAU probe_cycle_records technical notes (2023 and 2024).

Examples

# \donttest{
res <- try(morie_arsau_analyze_probe_cycle_records(year = "2024"))
if (!inherits(res, "try-error")) print(res)
#> ARSAU probe_cycle_records analysis (2024)
#> =========================================
#> Call: morie_arsau_analyze_probe_cycle_records(year=‘2024’) 
#> 
#>   Year/range        2024
#>   Kind              probe_cycle_records
#>   Rows analysed     5
#>   Columns analysed  3
#>   Valid             yes
#>   Sub-analyses      2
#> 
#> Ran 2 sub-analysis(es) over the ARSAU 'probe_cycle_records' dataset for '2024': cycle_distribution, data_quality. Each sub-result is available as `result$<name>` and the underlying data.frame as `result$data`. 
# }