Convert distances between kilometers, nautical miles, and statute miles.
convert.distance(x, from = c("nm", "km", "mi"), to = c("km", "nm", "mi"))
numeric. The distance to be converted.
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).