inst/doc/distances.R

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

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

## -----------------------------------------------------------------------------
data(nh_m)

nh_m <- nh_m[, 1:4]

## -----------------------------------------------------------------------------
dist_info(plans = nh_m, shp = nh, total_pop = pop)

## -----------------------------------------------------------------------------
dist_ham(plans = nh_m)

## -----------------------------------------------------------------------------
dist_man(plans = nh_m)

## -----------------------------------------------------------------------------
dist_euc(plans = nh_m)

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.