unstackFatalities {cholera}R Documentation

Unstack "stacks" in Snow's cholera map.

Description

Unstacks fatalities data by 1) assigning the coordinates of the base case to all cases in a stack and 2) setting the base case as an "address" and making the number of fatalities an attribute.

Usage

unstackFatalities(multi.core = TRUE, compute = FALSE,
  fatalities = fixFatalities(), dev.mode = FALSE)

Arguments

multi.core

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

compute

Logical. TRUE computes data. FALSE uses pre-computed data.

fatalities

Corrected fatalities data from cholera::fixFatalities(). For original data, use HistData::Snow.deaths.

dev.mode

Logical. Development mode uses parallel::parLapply().

Value

An R list that includes anchor.case, fatalities.address, fatalities.unstacked and ortho.proj.

Note

This function is computationally intensive. This function documents the code that generates anchor.case, fatalities.address, fatalities.unstacked and ortho.proj.

See Also

vignette("unstacking.fatalities")


[Package cholera version 0.7.5 Index]