DegToRad.Rd
Convert degrees to radians (and back again).
DegToRad(deg) RadToDeg(rad)
a vector of angles in degrees.
a vector of angles in radians.
DegToRad returns a vector of the same length as deg with the angles in radians. RadToDeg returns a vector of the same length as rad with the angles in degrees.
deg
rad
Andri Signorell <andri@signorell.net>
DegToRad(c(90,180,270)) #> [1] 1.570796 3.141593 4.712389 RadToDeg( c(0.5,1,2) * pi) #> [1] 90 180 360