segmentLength: Compute length of road segment.

View source: R/segmentLength.R

segmentLengthR Documentation

Compute length of road segment.

Description

Compute length of road segment.

Usage

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

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. latlong = TRUE only returns meters.

latlong

Logical.

Value

An R vector of length one.

Examples

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

lindbrook/cholera documentation built on Jan. 13, 2025, 3:49 p.m.