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