Converts degrees to radians

Share:

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

1
as_radians(theta = 0)

Arguments

theta

A numeric angular measurement in degrees from north.

Details

Achieves a very simple conversion with a convenient function call.

Value

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

Note

The purpose of this function is to reduce computer code clutter when using angular measuremnts in R. The simple function call ensures that degree to radian conversions are completed consistently and accurately. Since trigonometric functions in R require angular measures in radians rather than degrees, this simple function can be used for simple angular unit conversion.

Author(s)

Tarmo K. Remmel

See Also

sin_d, cos_d, tan_d, asin_d, acos_d, atan_d

Examples

1
as_radians(theta = 90)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.