Learn R Programming

aspace (version 3.2)

cos_d: Compute cosine with angle given in degrees

Description

Provides the functionality of cos, but for input angles measured in degrees (not radians).

Usage

cos_d(theta = 0)

Arguments

theta
A numeric angular measurement in degrees from north.

Value

Details

Since the R default is to compute trigonometric functions on angular measurements stored in radians, this simple function performs the conversion from degrees, reducing the need to do so a priori, outside the function.

See Also

sin_d, tan_d, asin_d, acos_d, atan_d