cyclicalMean: Cyclical mean

Description Usage Arguments Value

View source: R/cyclicalMean.r

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

1
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 Sept. 5, 2021, 2:04 p.m.