Compute walking path from case/landmark to nearest or selected pump.
walkingPath(origin = 1, destination = NULL, type = "case-pump",
vestry = FALSE, latlong = FALSE, case.set = "observed",
location = "nominal", weighted = TRUE, distance.unit = "meter",
time.unit = "second", walking.speed = 5, include.landmarks = TRUE)Numeric. Vector of origin(s) (numeric or case/landmark name).
Numeric. Vector of destination(s) (numeric or landmark/pump name).
Character. Path case to pump. FALSE is all other combinations of cases, landmarks and pumps.
Logical. TRUE uses the 14 pumps from the map in the Vestry Report. FALSE uses the 13 pumps from the original map.
Logical.
Character. "observed" or "expected".
Character. For cases and pumps. "anchor, "fatality" or "orthogonal.
Logical. TRUE computes shortest path in terms of road length. FALSE computes shortest path in terms of the number of nodes.
Character. Unit of distance: "meter" or "yard".
Character. "hour", "minute", or "second".
Numeric. Walking speed in km/hr.
Logical. Include landmarks as cases.