circ.mean with na.rm capability.

Share:

Description

circ.mean with na.rm capability.

Usage

1
  circ.mean.na.rm(x, unit = "radians", na.rm = TRUE)

Arguments

x

vector of data points measured in radians or degrees.

na.rm

Logical. Remove NAs before calculating?

unit

Character. Input direction unit. Default is 'radians'. Setting to 'degrees' assumes x is in degrees, and also returns the values in degrees.

Author(s)

Jonathan A. Greenberg STARStools@estarcion.net

Examples

1
2
3
degree_vector_with_NA=c(359,1,45,NA)
circ.mean.na.rm(degree_vector_with_NA,na.rm=FALSE,unit='degrees')
circ.mean.na.rm(degree_vector_with_NA,na.rm=TRUE,unit='degrees')

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.