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

View source: R/neighborhoodDataB.R

neighborhoodDataBR Documentation

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

Description

Assembles cases, pumps and road into a network graph.

Usage

neighborhoodDataB(vestry = FALSE, case.set = "observed",
  embed.addr = TRUE, embed.landmarks = TRUE, embed.pumps = TRUE,
  latlong = FALSE)

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.

latlong

Logical. Use estimated longitude and latitude.

Value

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


lindbrook/cholera documentation built on April 29, 2024, 12:22 p.m.