
OTIS seg/RC totals per region x year (Toronto row flagged for TPS-overlay use)
Source:R/otis_tps_overlay.R
morie_otis_tps_per_region_rollup.RdOTIS seg/RC totals per region x year (Toronto row flagged for TPS-overlay use)
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