R: Distance Conversion

convert.distance {swfscMisc} | R 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

[Package swfscMisc version 1.2 Index]