R/summarise_angle.R
mean_angle.Rd
Returns the mean direction of a vector of angles in radians, wrapped to [0, 2*pi).
mean_angle(ang)
Numeric vector of angles in radians.
Circular mean in [0, 2*pi).
mean_angle(c(pi/2, 1.5 * pi)) #> [1] 3.141593 mean_angle(c(0, pi)) #> [1] 1.570796