Learn R Programming

monoClust (version 1.2.1)

circ_arith: Add/Subtract Circular Values in Degrees/Radian

Description

Add/subtract two circular variables in degrees (%cd+% and %cd-%) and radian (%cr+% and %cr-%).

Usage

x %cd+% y

x %cd-% y

x %cr+% y

x %cr-% y

Arguments

x, y

Circular values in degrees/radians.

Value

A value between [0, 360) in degrees or [0, 2*pi) in radian.

Examples

Run this code
# NOT RUN {
90 %cd+% 90

250 %cd+% 200

25 %cd-% 80

pi %cr+% (pi/2)

# }

Run the code above in your browser using DataLab