Learn R Programming

aspace (version 0.1)

as.radians: Converts degrees to radians

Description

This function converts an angular measure stored in degrees to radians. This is an alternative to the rad function available in the package circular.

Usage

as.radians(theta = 0)

Arguments

theta
A numeric angular measurement in degrees from north.

Value

  • Returns a numeric value for an angle in radians that is equivalent to the input theta in degrees.

Details

Achieves a very simple conversion with a convenient function call.

See Also

sin.d, cos.d, tan.d, asin.d, acos.d, atan.d

Examples

Run this code
as.radians(theta = 90)

Run the code above in your browser using DataLab