inst/doc/splits.R

## ---- 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)

Try the redistmetrics package in your browser

Any scripts or data that you put into this service are public.

redistmetrics documentation built on April 11, 2022, 5:08 p.m.