Convert radians to degrees

rad2deg(x, ...)

Arguments

x

numeric vector, expected to be radian values between zero and pi*2.

...

other parameters are ignored.

Details

This function simply converts radians which range from zero to pi*2, into degrees which range from 0 to 360.

See also

Examples

rad2deg(c(pi*2, pi/2))
#> [1] 360  90