splits_sub_admin | R Documentation |
Compute Number of Sub-Administrative Units Split
splits_sub_admin(plans, shp, sub_admin)
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 |
sub_admin |
unqouted name of column in shp with numeric identifiers for subsidiary administrative units |
numeric vector
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.