latlongNeighborhoodVoronoi: Compute Voronoi pump neighborhoods (lat-long prototype).

View source: R/latlongNeighborhoodVoronoi.R

latlongNeighborhoodVoronoiR Documentation

Compute Voronoi pump neighborhoods (lat-long prototype).

Description

Group cases into neighborhoods using Voronoi tessellation.

Usage

latlongNeighborhoodVoronoi(pump.select = NULL, vestry = FALSE,
  case.location = "address", pump.location = "address")

Arguments

pump.select

Numeric. Vector of numeric pump IDs to define pump neighborhoods (i.e., the "population"). Negative selection possible. NULL selects all pumps.

vestry

Logical. TRUE uses the 14 pumps from the Vestry report. FALSE uses the 13 in the original map.

case.location

Character. "address" or "orthogonal". "address" uses the longitude and latitude of fatalities.address. "orthogonal" uses the longitude and latitude of latlong.ortho.address.

pump.location

Character. "address" or "orthogonal". "address" uses the longitude and latitude coordinates of pumps or pumps.vestry. "orthogonal" uses the longitude and latitude coordinates of latlong.ortho.pump or latlong.ortho.pump.vestry.


lindbrook/cholera documentation built on April 14, 2024, 6:29 a.m.