rad_deg: Conversion between Radians and Degrees

Description Usage Arguments Details Author(s) See Also Examples

Description

Converts radians to degrees and vice versa.

Usage

1
2
3

Arguments

d

degrees

r

radians

Details

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 ∕ π.

Author(s)

Marco J. Maier

See Also

see Trigonometric Functions, Hyperbolic Functions, Constants in R

Examples

1
2
3
4
5
6
7
8
# pi is available as a constant
pi

# 180° are pi radians
deg2rad(180)

# 2 * pi radians are 360°
rad2deg(2 * pi)


Search within the REdaS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.