0th

Percentile

Convert Degrees to Radians and Vice Versa

Convert degrees to radians (and back again).

Keywords
arith
Usage
DegToRad(deg)
RadToDeg(rad)
Arguments
deg
a vector of angles in degrees.

a vector of angles in radians.

Value

deg with the angles in radians. RadToDeg returns a vector of the same length as rad with the angles in degrees.

Examples
DegToRad(c(90,180,270))


Documentation reproduced from package DescTools, version 0.99.19, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.