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)
numeric matrix
data(nh)
data(nh_m)
# For a single plan:
splits_count(plans = nh$r_2020, shp = nh, admin = county)
#> [,1]
#> Belknap County 1
#> Carroll County 2
#> Cheshire County 1
#> Coos County 1
#> Grafton County 2
#> Hillsborough County 2
#> Merrimack County 2
#> Rockingham County 2
#> Strafford County 2
#> Sullivan County 1
# Or many plans:
splits_count(plans = nh_m[, 3:5], shp = nh, admin = county)
#> [,1] [,2] [,3]
#> Belknap County 1 1 2
#> Carroll County 1 1 1
#> Cheshire County 2 1 1
#> Coos County 1 1 1
#> Grafton County 1 2 1
#> Hillsborough County 2 2 2
#> Merrimack County 2 2 2
#> Rockingham County 2 2 2
#> Strafford County 1 1 2
#> Sullivan County 1 1 1