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