Just a helper to multiply degrees by \(\pi\) and divide by 180 to get radians.
note: R's trig functions, e.g. sin() use Radians for input! 180 Degrees is equal to 2\(x \pi\) radians.
sin()
deg2rad(deg)
The value in degrees you wish to convert to radians
value in radians
rad2deg(), sin()
rad2deg()
Other Miscellaneous Functions: rad2deg()
# NOT RUN { deg2rad(180) # pi! # }
Run the code above in your browser using DataCamp Workspace