segmentLength {cholera}R Documentation

Compute length of road segment.

Description

Compute length of road segment.

Usage

segmentLength(id = "216-1", distance.unit = "meter")

Arguments

id

Character. A concatenation of a street's numeric ID, a whole number between 1 and 528, and a second number used to identify the sub-segments.

distance.unit

Character. Unit of distance: "meter", "yard" or "native". "native" returns the map's native scale. See vignette("roads") for information on conversion.

Value

An R vector of length one.

Examples

segmentLength("242-1")
segmentLength("242-1", distance.unit = "yard")

[Package cholera version 0.7.5 Index]