Places regularly spaced "simulated" cases across the face of the map. These cases are then orthogonally projected onto the road network, which are used to generate "expected" cases, paths and neighborhoods. The function relies on sp::spsample() and sp::Polygon().
simulateFatalities(compute = FALSE, multi.core = FALSE,
simulated.obs = 5000L)
Logical. TRUE computes data. FALSE uses pre-computed data. For replication of data used in the package, FALSE is the default.
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. Default is 5000.
An R list with two elements: sim.ortho.proj
and regular.cases
This function is computationally intensive. On a 2.3 GHz Intel Core i7, it takes approximately 31 minutes to run on one core and approximately 7 minutes to run on eight logical (four physical) cores. This function documents the code that generates sim.ortho.proj
and regular.cases
.