Counts the total number of municpalities that are split.
Municipalities in this interpretation do not need to cover the entire state, which
differs from counties.
muni_splits(map, munis, .data = cur_plans())
A vector of municipality names or ids.
A numeric vector (if only one map) or matrix with one row
for each precinct and one column for each map. Required.
integer vector of length ndist by ncol(plans)
ia <- redist_map(iowa, existing_plan = cd_2010, total_pop = pop, pop_tol = 0.01)
plans <- redist_smc(ia, 50, silent = TRUE)
ia$region[1:10] <- NA
splits <- redist.muni.splits(plans, ia$region)