latlongNearestPump {cholera} | R Documentation |
Compute shortest georeferenced distances (and walking paths) to selected pumps (prototype).
Description
Compute shortest georeferenced distances (and walking paths) to selected pumps (prototype).
Usage
latlongNearestPump(pump.select = NULL, metric = "walking",
vestry = FALSE, weighted = TRUE, time.unit = "second",
walking.speed = 5, multi.core = TRUE)
Arguments
pump.select |
Numeric. Pump candidates to consider. Default is |
metric |
Character. "euclidean" or "walking". |
vestry |
Logical. |
weighted |
Logical. |
time.unit |
Character. "hour", "minute", or "second". |
walking.speed |
Numeric. Walking speed in km/hr. |
multi.core |
Logical or Numeric. |
Value
An R data frame or list of 'igraph' path nodes.