DegToRad: Convert Degrees to Radians and Vice Versa

View source: R/DescTools.r

DegToRadR Documentation

Convert Degrees to Radians and Vice Versa

Description

Convert degrees to radians (and back again).

Usage

DegToRad(deg)
RadToDeg(rad)

Arguments

deg

a vector of angles in degrees.

rad

a vector of angles in radians.

Value

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

Author(s)

Andri Signorell <andri@signorell.net>

Examples

DegToRad(c(90,180,270))
RadToDeg( c(0.5,1,2) * pi)

AndriSignorell/DescTools documentation built on April 13, 2024, 6:33 a.m.