nearestPump: Compute shortest distances to selected pumps.

View source: R/nearestPump.R

nearestPumpR Documentation

Compute shortest distances to selected pumps.

Description

Compute shortest distances to selected pumps.

Usage

nearestPump(pump.select = NULL, metric = "walking", vestry = FALSE,
  weighted = TRUE, case.set = "observed", latlong = FALSE,
  multi.core = TRUE, dev.mode = FALSE)

Arguments

pump.select

Numeric. Pump candidates to consider. Default is NULL: all pumps are used. Otherwise, selection by a vector of numeric IDs: 1 to 13 for pumps; 1 to 14 for pumps.vestry. Negative selection allowed.

metric

Character. "euclidean" or "walking".

vestry

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

weighted

Logical. TRUE computes shortest path in terms of road length. FALSE computes shortest path in terms of the number of nodes.

case.set

Character. "observed" or "expected" # or "snow".

latlong

Logical. TRUE Use longitude and latitude coordinates.

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().


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