streetLength {cholera}R Documentation

Compute length of selected street.

Description

Compute length of selected street.

Usage

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

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.

Value

An R vector of length one.

Examples

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

[Package cholera version 0.7.5 Index]