convert.angle: Angle Conversion

View source: R/convert.angle.R

convert.angleR 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")


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