R/deprecations.R
redist.multisplits.Rd
Counts the total number of counties that are split across more than 2 districts.
redist.multisplits(plans, counties)
A numeric vector (if only one map) or matrix with one row for each precinct and one column for each map. Required.
A vector of county names or county ids.
integer matrix where each district is a
data(iowa)
ia <- redist_map(iowa, existing_plan = cd_2010, total_pop = pop, pop_tol = 0.01)
plans <- redist_smc(ia, 50, silent = TRUE)
#old redist.multisplits(plans, ia$region)
splits_multi(plans, ia, region)
#> [1] 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3
#> [38] 3 3 3 3 3 3 3 2 2 2 2 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3
#> [75] 3 3 3 3 3 3 2 2 2 2 4 4 4 4 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3
#> [112] 3 3 3 3 3 4 4 4 4 2 2 2 2 1 1 1 1 4 4 4 4 3 3 3 3 4 4 4 4 2 2 2 2 2 2 2 2
#> [149] 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
#> [186] 2 2 2 3 3 3 3 2 2 2 2 3 3 3 3 3 3 3 3