simulateFatalities {cholera} | R Documentation |
Project simulated fatalities onto road network
Description
Places regularly spaced "simulated" or "expected" cases across the face of the map and then finds the "addresses" of those cases via orthogonal projection or simple proximity to road graph network. These data are used to generate "expected" pump neighborhoods.
Usage
simulateFatalities(recompute.regular.cases = FALSE, simulated.obs = 20000L,
multi.core = FALSE)
Arguments
recompute.regular.cases |
Logical. |
simulated.obs |
Numeric. Number of regular cases. For use with |
multi.core |
Logical or Numeric. |
Value
An R data frame: sim.ortho.proj
.
Note
This function is computationally intensive. With "simulated.obs" set to 20,000 (generating 19,993 cases). This function documents the code that generates sim.ortho.proj
and regular.cases
. In real world terms, the distance between simulated cases is approximately 6 meters.