Convert radians to degrees

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)

See also

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