## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(redistmetrics)
data(nh)

## -----------------------------------------------------------------------------
splits_admin(plans = nh$r_2020, shp = nh, admin = county)

## -----------------------------------------------------------------------------
splits_sub_admin(plans = nh$r_2020, shp = nh, sub_admin = county)

## -----------------------------------------------------------------------------
splits_multi(plans = nh$r_2020, shp = nh, admin = county)

## -----------------------------------------------------------------------------
splits_count(plans = nh$r_2020, shp = nh, admin = county)