Places regularly spaced "simulated" or "expected" cases across the face of the map. The function finds the "addresses" of cases on the road network via orthogonal projection (or simple proximity). These data are used to generate "expected" pump neighborhoods. The function relies on sp::spsample()
and sp::Polygon()
.
simulateFatalities(compute = FALSE, multi.core = FALSE,
simulated.obs = 20000L)
Logical. TRUE
computes data. FALSE
uses pre-computed data. For replication of data used in the package,
Logical or Numeric. TRUE
uses parallel::detectCores()
. FALSE
uses one, single core. With Numeric, you specify the number logical cores (rounds with as.integer()
). On Windows, only multi.core = FALSE
is available.
Numeric. Number of sample cases.
An R list with two elements: sim.ortho.proj
and regular.cases