meanCircular {JWileymisc} | R Documentation |
Calculate a Circular Mean
Description
Function to calculate circular mean
Usage
meanCircular(x, max, na.rm = TRUE)
Arguments
x |
Numeric or integer values |
max |
The theoretical maximum (e.g., if degrees, 360) |
na.rm |
A logical value indicating whether to remove missing values.
Defaults to |
Value
A numeric value with the circular mean.
Examples
meanCircular(c(22:23, 1:2), max = 24)
meanCircular(c(12, 24), max = 24)
meanCircular(c(6, 7, 23), max = 24)
meanCircular(c(6, 7, 21), max = 24)
meanCircular(c(6, 21), max = 24)
meanCircular(c(6, 23), max = 24)
meanCircular(c(.91, .96, .05, .16), max = 1)
meanCircular(c(6, 7, 8, 9), max = 24)
meanCircular(1:3, max = 24)
meanCircular(21:23, max = 24)
meanCircular(c(16, 17, 18, 19), max = 24)
meanCircular(c(355, 5, 15), max = 360)
[Package JWileymisc version 1.4.1 Index]