cmean {activity}R 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)

[Package activity version 1.3.1 Index]