Learn R Programming

umx (version 4.9.0)

deg2rad: Convert Degrees to Degrees

Description

A helper to convert degrees (360 in a circle) to Rad (\(2\pi\) in a circle, so \(deg x 180/\pi\) to get radians.

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

180 Degrees is equal to \(\pi\) radians. 1 Rad = \(180/\pi\) degrees (\(\approx 57.296^{\circ}\))

Usage

deg2rad(deg)

Arguments

deg

The value in degrees you wish to convert to radians

Value

  • value in radians

References

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

See Also

Other Miscellaneous Functions: fin_interest(), fin_percent(), fin_valuation(), loadings.MxModel(), rad2deg(), umxBrownie()

Examples

Run this code
# NOT RUN {
deg2rad(180) == pi # TRUE!
# }

Run the code above in your browser using DataLab