This function transforms a circular angle from degree to radian or from radian to degree.

torad(x)

todeg(x)

Arguments

x

A degree value if torad or radian value if todeg.

Value

A radian value if torad or degree value if todeg.

Examples

torad(90)
#> [1] 1.570796
torad(-45)
#> [1] 5.497787
todeg(pi/2)
#> [1] 90