convert.distance: Distance Conversion
Description
Convert distances between kilometers, nautical miles, and statute miles.
Usage
convert.distance(x, from = c("nm", "km", "mi"), to = c("km", "nm", "mi"))
Arguments
- x
numeric. The distance to be converted.
- from, to
character. Units to convert from and to. Can be "km" (kilometers),
"nm" (nautical miles), or "mi" (statute miles), or any partial match
thereof (case sensitive).