deg2rad: Conversion between degrees and radians

View source: R/deg2rad.r

deg2radR Documentation

Conversion between degrees and radians

Description

deg2rad performs conversion from degrees to radians.

rad2deg performs conversion from radians to degrees.

Usage

deg2rad(x)

rad2deg(x)

Arguments

x

a numeric vector

Value

a numeric vector the same length as x

Details

Radians and degrees are both units used for measuring angles.

A degree is a measure of angle equal to 1/360th of a revolution, or circle. A radian is the measurement of angle equal to the length of an arc divided by the radius of the circle or arc. A circle is comprised of 2*pi radians, which is the equivalent of 360 degrees.

A common application in ecological studies is the conversion of measured exposition (in degrees) of plots into statistically meaningful measures, such as the north value or the east value. For this, the cosine (for northness) or sine (for eastness) is applied to the radian of the exposition.

References

BIPM (2019): The International System of Units (SI). Bureau international des poids et mesures, ninth edition. https://www.bipm.org/en/publications/si-brochure, ISBN 978-92-822-2272-0

Examples

## Covert the value pi to degrees
rad2deg(pi)

# Calculate north and east values based on exposition measured in degrees
north <- cos(deg2rad(schedenenv$exp))
east <- sin(deg2rad(schedenenv$exp))



fgoral/goeveg documentation built on Feb. 27, 2024, 6:32 a.m.