Skip to contents

OTIS seg/RC totals per region x year (Toronto row flagged for TPS-overlay use)

Usage

morie_otis_tps_per_region_rollup(otis_b01)

Arguments

otis_b01

OTIS b01 data.frame.

Value

A morie_otis_analysis_result with a year x region count matrix.

Examples

set.seed(2026)
b01 <- data.frame(
  EndFiscalYear = rep(2023:2025, each = 30),
  Region_AtTimeOfPlacement = sample(c("Toronto", "Central", "Eastern"), 90, TRUE),
  NumberConsecutiveDays_Segregation = sample(1:25, 90, TRUE))
res <- morie_otis_tps_per_region_rollup(b01)
res$payload$by_region
#>       
#>        Central Eastern Toronto
#>   2023      11       8      11
#>   2024       5       8      17
#>   2025       6       9      15