Skip to contents

Convert radians to degrees

Usage

rad_2_deg(rad)

Arguments

rad

Radians (a numeric of any length >= 1)

Value

The angle(s) in degrees (as a numeric vector of the same length)

Author

Vikram B. Baliga

Examples

## One input
rad_2_deg(pi/2)
#> [1] 90

## Multiple inputs
rad_2_deg(c(pi / 2, pi, 2 * pi))
#> [1]  90 180 360