diffCircular | R Documentation |
Calculate the Circular Difference
diffCircular(x, y, max)
x |
Numeric or integer values |
y |
Numeric or integer values |
max |
the theoretical maximum (e.g., if degrees, 360; if hours, 24; etc.). |
A value with the circular difference. This will always be positive if defined.
diffCircular(330, 30, max = 360)
diffCircular(22, 1, max = 24)
diffCircular(c(22, 23, 21, 22), c(1, 1, 23, 14), max = 24)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.