Skip to contents

Periods are explicit month vectors sorted chronologically. Comparability means equal length, matching submitted positions, at least one submitted position, and no partial suspicion. Identical missing positions are listed but allow comparison of the same observed subset. This tests coverage only, not seasonality, reporting practice or population comparability.

Usage

sl_coverage_compare(coverage, period_a, period_b)

Arguments

coverage

Output of sl_coverage.

period_a, period_b

Month vectors for comparison.

Value

A tibble with comparable, submitted positions, and a list of gaps.

Examples

sl_coverage_compare(sl_coverage(sl_sample()), "2026-05", "2026-06")
#> # A tibble: 2 × 5
#>   force_id       comparable submitted_a submitted_b breaking_months 
#>   <chr>          <lgl>      <list>      <list>      <list>          
#> 1 dyfed-powys    FALSE      <int [0]>   <int [0]>   <tibble [2 × 5]>
#> 2 west-yorkshire TRUE       <int [1]>   <int [1]>   <tibble [0 × 5]>