Learn R Programming

activity (version 1.3)

cmean: 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.

Value

A radian value giving mean direction.

Details

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

See Also

mean

Examples

Run this code
# NOT RUN {
data(BCItime)
times <- subset(BCItime, species=="ocelot")$time*2*pi
cmean(times)
# }

Run the code above in your browser using DataLab