Join us for
RADAR: AI Edition

cholera (version 0.9.1)

simulateFatalities: 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)

Value

An R data frame: sim.ortho.proj.

Arguments

recompute.regular.cases

Logical. TRUE re-computes regular data. FALSE uses pre-computed data. For replication of data used in the package.

simulated.obs

Numeric. Number of regular cases. For use with recompute.regular.cases = TRUE.

multi.core

Logical or Numeric. TRUE uses parallel::detectCores(). FALSE uses one, single core. With Numeric, you specify the number logical cores (rounds with as.integer()). See vignette("Parallelization") for details.