R: Angle Conversion

convert.angle {swfscMisc} | R Documentation

## Angle Conversion

### Description

Converts angles between radians and degrees.

### Usage

    convert.angle(x, from = c("degrees", "radians"), to = c("radians",
      "degrees"))

### Arguments

`x` | numeric. The angle to be converted.
`from, to` | character. Units to convert from and to. Can be "radians" or "degrees" or any partial match (case-sensitive).

### Author(s)

Eric Archer eric.archer@noaa.gov

### Examples

    convert.angle(45, "deg", "rad")
    convert.angle(4.5, "r", "d")

[Package swfscMisc version 1.2 Index]