cmean: Circular mean

View source: R/activity_code.r

cmeanR Documentation

Circular mean

Description

Calculates the average direction of a set of radian circular values.

Usage

cmean(x, ...)

Arguments

x

A vector of radian values.

...

Arguments passed to mean.

Details

The base::mean function is use internally, and additional arguments, e.g for missing data handling, are passed to this.

Value

A radian value giving mean direction.

See Also

mean

Examples

data(BCItime)
times <- subset(BCItime, species=="ocelot")$time*2*pi
cmean(times)

activity documentation built on Sept. 27, 2023, 9:08 a.m.

Related to cmean in activity...