circ_mean_rad {circhelp} | R Documentation |
Circular mean
Description
Circular mean
Usage
circ_mean_rad(x, na.rm = FALSE)
circ_mean_180(x, na.rm = FALSE)
circ_mean_360(x, na.rm = FALSE)
Arguments
x |
vector of values |
na.rm |
a logical value indicating whether NA values should be removed before the computation proceeds |
Value
mean of values in the vector
Functions
-
circ_mean_rad()
: circular mean in 2pi space -
circ_mean_180()
: circular mean in 180° space (e.g., line orientation) -
circ_mean_360()
: circular mean in 360° space
Examples
x <- runif(1000, -pi, pi)
mean(x)
circ_mean_rad(x)
[Package circhelp version 1.1 Index]