unstackFatalities: Unstack "stacks" in Snow's cholera map.

View source: R/unstack.R

unstackFatalitiesR 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, 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.

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")


cholera documentation built on March 7, 2023, 5:31 p.m.