splits_admin | R Documentation |
Compute Number of Administrative Units Split
splits_admin(plans, shp, admin)
plans |
A |
shp |
A |
admin |
Unqouted name of column in |
A numeric vector. Can be shaped into a district-by-plan matrix.
data(nh)
data(nh_m)
# For a single plan:
splits_admin(plans = nh$r_2020, shp = nh, admin = county)
# Or many plans:
splits_admin(plans = nh_m[, 3:5], shp = nh, admin = county)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.