distanceTime {cholera}R Documentation

Convert distance to elapsed time.

Description

Convert distance to elapsed time.

Usage

distanceTime(x, distance.unit = "meter", time.unit = "second",
  walking.speed = 5)

Arguments

x

Numeric. Nominal map distance.

distance.unit

Character. Unit of distance: "meter", "yard" or "native". "native" returns the map's native scale. See vignette("roads") for information on conversion.

time.unit

Character. Unit of measurement: "hour", "minute" or "second".

walking.speed

Numeric. Walking speed in km/hr.

Value

An R vector.


[Package cholera version 0.7.5 Index]