Learn R Programming

cholera (version 0.8.0)

streetLength: Compute length of selected street.

Description

Compute length of selected street.

Usage

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

Value

An R vector of length one.

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.

Examples

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

Run the code above in your browser using DataLab