neighborhoodEuclidean: Compute Euclidean path pump neighborhoods.

View source: R/euclidean.R

neighborhoodEuclideanR Documentation

Compute Euclidean path pump neighborhoods.

Description

Plots star graph from pump to its cases.

Usage

neighborhoodEuclidean(pump.select = NULL, vestry = FALSE,
  case.set = "observed", case.select = "address", latlong = FALSE,
  location = "nominal", brute.force = FALSE, multi.core = TRUE,
  dev.mode = FALSE)

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.set

Character. "observed" or "expected".

case.select

Character. Fatalities: "all" or "address".

latlong

Logical. Longitude and latitude coordinates

location

Character. "nominal", "anchor" or "orthogonal".

brute.force

Logical. For latlong = FALSE. TRUE computes nearest pump for each case. FALSE uses Voronoi cells as shortcut.

multi.core

Logical or Numeric. TRUE uses parallel::detectCores(). FALSE uses one, single core. You can also specify the number logical cores. See vignette("Parallelization") for details.

dev.mode

Logical. Development mode uses parallel::parLapply().

Value

An R list.


lindbrook/cholera documentation built on Oct. 11, 2024, 7:31 p.m.