Learn R Programming

dendrometry (version 0.0.2)

principal: Principal measure

Description

Principal measure of an angle value. Principal measure ranges from -pi to pi for radian unit while it ranges from -180 to 180 for degree unit.

Usage

principal(angle, angleUnit = c("deg", "rad"))

Value

A matrix of principal measure of angle in both radian and in degree units.

Arguments

angle

numeric vector of angle.

angleUnit

The unit of angle. Either "deg" or "rad". Default is "deg".

See Also

rad for radian, deg for degree, slope2angle for slope to angle conversion, angle2slope for angle to slope conversion.

Examples

Run this code
principal(303)
principal(23 * pi/8, "rad")

Run the code above in your browser using DataLab