powered by
This is a simple function for converting degreed into radians.
deg2rad(deg)
A numeric value for angle in degrees.
A numeric value for angle in radians.
# NOT RUN { sin(30) # -0.409 (!) sin(deg2rad(30)) # 0.5 # }
Run the code above in your browser using DataLab