cmean {activity} | R Documentation |
Calculates the average direction of a set of radian circular values.
cmean(x, ...)
x |
A vector of radian values. |
... |
Arguments passed to |
The base::mean
function is use internally, and additional arguments, e.g for missing data handling, are passed to this.
A radian value giving mean direction.
data(BCItime)
times <- subset(BCItime, species=="ocelot")$time*2*pi
cmean(times)