latlongNeighborhoodDataB: Compute network graph of roads, cases and pumps (prototype).

View source: R/latlongNeighborhoodDataB.R

latlongNeighborhoodDataBR Documentation

Compute network graph of roads, cases and pumps (prototype).

Description

Assembles cases, pumps and road into a network graph.

Usage

latlongNeighborhoodDataB(vestry = FALSE, case.set = "observed",
  embed.addr = TRUE, embed.landmarks = TRUE, embed.pumps = TRUE,
  multi.core = TRUE)

Arguments

vestry

Logical. Use Vestry Report pump data.

case.set

Character. "observed", "expected", or "snow". "snow" captures John Snow's annotation of the Broad Street pump neighborhood printed in the Vestry report version of the map.

embed.addr

Logical. Embed cases into road network.

embed.landmarks

Logical. Embed landmarks into road network.

embed.pumps

Logical. Embed pumps into road network.

multi.core

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

Value

An R list of nodes, edges and an 'igraph' network graph.


lindbrook/cholera documentation built on April 14, 2024, 6:29 a.m.