umx (version 4.0.0)

deg2rad: Convert Degrees to Degrees

Description

Just a helper to multiply degrees by \(\pi\) and divide by 180 to get radians.

note: R's trig functions, e.g. sin() use Radians for input! 180 Degrees is equal to 2\(x \pi\) radians.

Usage

deg2rad(deg)

Arguments

deg

The value in degrees you wish to convert to radians

Value

  • value in radians

See Also

Other Miscellaneous Functions: rad2deg()

Examples

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

Run the code above in your browser using DataLab