cyclicalMean: Cyclical mean

View source: R/cyclicalMean.r

cyclicalMeanR Documentation

Cyclical mean

Description

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.

Usage

cyclicalMean(x, steps = 360)

Arguments

x

vector of cyclical values

steps

number of steps in the cycle

Value

collapsed string


kraaijenbrink/pkrf documentation built on July 4, 2023, 10:16 p.m.