Learn R Programming

umx (version 4.20.0)

deg2rad: Convert Degrees to Degrees

Description

A helper to convert degrees (360 in a circle) to Rad (\(2\pi\) in a circle).

note: R's trig functions, e.g. sin() use Radians for input!

The formula is radians = \(deg x 180/\pi\).

  • 180 Degrees is equal to \(\pi\) radians.

  • 1 Rad = \(180/\pi\) degrees = ~ 57.296 degrees.

Usage

deg2rad(deg)

Value

  • value in radians

Arguments

deg

The value in degrees you wish to convert to radians

References

https://en.wikipedia.org/wiki/Radian

See Also

Other Miscellaneous Functions: fin_JustifiedPE(), fin_NI(), fin_interest(), fin_percent(), fin_ticker(), fin_valuation(), rad2deg(), umxBrownie()

Examples

Run this code
deg2rad(180) == pi # TRUE!

Run the code above in your browser using DataLab