Learn R Programming

cholera (version 0.4.0)

segmentLength: Compute length of road segment.

Description

Compute length of road segment.

Usage

segmentLength(id, unit = NULL)

Arguments

id

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

unit

Character. Unit of measurement: "meter" or "yard". Default is NULL, which returns the map's native scale.

Value

An R vector of length one.

See Also

roads, coderoad.segments, streetNameLocator, streetNumberLocator, vignette("road.names")

Examples

Run this code
# NOT RUN {
segmentLength("242-1")
segmentLength("242-1", unit = "meter")
# }

Run the code above in your browser using DataLab