Description Usage Arguments Details Value

View source: R/functions_useful.R

This function calculates the smallest difference between two circularly defined values. Examples from circular variables are (azimuth angle, hour of the day, day of the year)

1 | ```
circular_variable_difference(value1,value2,values_in_full_circle)
``` |

`value1` |
value which is compared against the other value |

`value2` |
value which the first value is compared against |

`values_in_full_circle` |
maximum value for value1 and value2 |

Function call (circular_variable_difference(10,350,360)) gives 20 degrees as the result: 10 degrees is 20 degrees more compared to 350 degrees, not 340 degrees less.

smallest difference for the value1 compared against value2

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.