convert.distance: Distance Conversion

View source: R/convert.distance.R

convert.distanceR Documentation

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).

Author(s)

Eric Archer eric.archer@noaa.gov


swfscMisc documentation built on Sept. 8, 2023, 5:55 p.m.