splits_multi: Compute Number of Administrative Units Split More than Once

View source: R/splits.R

splits_multiR Documentation

Compute Number of Administrative Units Split More than Once

Description

Compute Number of Administrative Units Split More than Once

Usage

splits_multi(plans, shp, admin)

Arguments

plans

redist_plans object or plans_matrix where each row indicates a district assignment and each column is a plan

shp

redist_map object, tibble, or data frame containing other columns

admin

unqouted name of column in shp with numeric identifiers for administrative units

Value

numeric vector

Examples

data(nh)
data(nh_m)
# For a single plan:
splits_multi(plans = nh$r_2020, shp = nh, admin = county)

# Or many plans:
splits_multi(plans = nh_m[, 3:5], shp = nh, admin = county)


redistmetrics documentation built on April 11, 2022, 5:08 p.m.