View source: R/activity_code.r
cmean | 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.
mean
data(BCItime)
times <- subset(BCItime, species=="ocelot")$time*2*pi
cmean(times)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.