circular_range: Circular Range

View source: R/statistics.R

circular_rangeR Documentation

Circular Range

Description

Length of the smallest arc which contains all the observations.

Usage

circular_range(x, axial = TRUE, na.rm = TRUE)

Arguments

x

numeric vector. Values in degrees.

axial

logical. Whether the data are axial, i.e. pi-periodical (TRUE, the default) or directional, i.e. 2 \pi-periodical (FALSE).

na.rm

logical value indicating whether NA values in x should be stripped before the computation proceeds.

Value

numeric. angle in degrees

References

Mardia, K.V., and Jupp, P.E (1999). Directional Statistics, Wiley Series in Probability and Statistics. John Wiley & Sons, Inc., Hoboken, NJ, USA. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/9780470316979")}

Examples

roulette <- c(43, 45, 52, 61, 75, 88, 88, 279, 357)
circular_range(roulette, axial = FALSE)

data("san_andreas")
circular_range(san_andreas$azi)

tectonicr documentation built on Sept. 11, 2024, 6:05 p.m.