Calculate the mean of a set of cyclical values, e.g. calendar months, day of year, angles. The code transform the cycle to cartesian vectors, calculates summed vector, and get the cycle of the sum vector.
cyclicalMean(x, steps = 360)
vector of cyclical values
number of steps in the cycle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.