splits_count | R Documentation |
Tallies the number of unique administrative unit-districts. An unsplit administrative unit will return an entry of 1, while each additional administrative unit-district adds 1.
splits_count(plans, shp, admin)
plans |
A |
shp |
A |
admin |
Unqouted name of column in |
numeric matrix
data(nh)
data(nh_m)
# For a single plan:
splits_count(plans = nh$r_2020, shp = nh, admin = county)
# Or many plans:
splits_count(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.