neighborhoodWalking | R Documentation |
Group cases into neighborhoods based on walking distance.
neighborhoodWalking(pump.select = NULL, vestry = FALSE, weighted = TRUE, case.set = "observed", multi.core = TRUE, dev.mode = FALSE)
pump.select |
Numeric. Vector of numeric pump IDs to define pump neighborhoods (i.e., the "population"). Negative selection possible. |
vestry |
Logical. |
weighted |
Logical. |
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. |
multi.core |
Logical or Numeric. |
dev.mode |
Logical. Development mode uses parallel::parLapply(). |
An R list with 7 objects:
paths
: list of paths to nearest or selected pump(s).
cases
: list of cases by pump.
vestry
: "vestry" from neighborhoodWalking().
observed
: "observed" from neighborhoodWalking().
pump.select
: "pump.select" from neighborhoodWalking().
cores
: number of cores to use for parallel implementation.
metric
: incremental metric used to find cut point on split road segments.
## Not run: neighborhoodWalking() neighborhoodWalking(pump.select = -6) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.