Convert degrees to radians

deg2rad(x)

rad2deg(x)

Arguments

x

Value

numeric vector, radians

Examples

rad2deg(pi)
#> [1] 180
deg2rad(180)
#> [1] 3.141593
deg2rad(rad2deg(pi))
#> [1] 3.141593
cos(pi); cos(deg2rad(rad2deg(pi)))
#> [1] -1
#> [1] -1