Degrees-to-Radians-to-Degrees | R Documentation |
Converts radians to degrees and vice versa.
deg2rad(d) rad2deg(r)
d |
degrees |
r |
radians |
Since π rad = 180°, degrees (d) can be converted to radians (r) using r = d · π ∕ 180 and the conversion of radians to degrees is d = r · 180 ∕ π.
Marco J. Maier
see Trigonometric Functions, Hyperbolic Functions, Constants in R
# pi is available as a constant pi # 180° are pi radians deg2rad(180) # 2 * pi radians are 360° rad2deg(2 * pi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.