powered by
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.
principal(angle, angleUnit = c("deg", "rad"))
A matrix of principal measure of angle in both radian and in degree units.
numeric vector of angle.
The unit of angle. Either "deg" or "rad". Default is "deg".
angle
rad for radian, deg for degree, slope2angle for slope to angle conversion, angle2slope for angle to slope conversion.
rad
deg
slope2angle
angle2slope
principal(303) principal(23 * pi/8, "rad")
Run the code above in your browser using DataLab