Convert degrees to radians

deg2rad(x, ...)

Arguments

x

numeric vector, expected to be degree values between zero and 360.

...

other parameters are ignored.

Details

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

See also

Examples

deg2rad(rad2deg(c(pi*2, pi/2)))/pi;
#> [1] 2.0 0.5