streetLength: Compute length of selected street.

View source: R/streetLength.R

streetLengthR Documentation

Compute length of selected street.

Description

Compute length of selected street.

Usage

streetLength(road = "Oxford Street", distance.unit = "meter",
  latlong = FALSE)

Arguments

road

Character or Numeric. Road name or number. For names, the function tries to correct for case and to remove extra spaces.

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

Logical. Use estimated longitude and latitude.

Value

An R vector of length one.

Examples

streetLength("Oxford Street")
streetLength("oxford street")
streetLength("oxford street", distance.unit = "yard")

lindbrook/cholera documentation built on Sept. 17, 2024, 1:41 a.m.