circular_range function

Circular Range

Circular Range

Length of the smallest arc which contains all the observations.

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π2 \pi-periodical (FALSE).

  • na.rm: logical value indicating whether NA values in x

    should be stripped before the computation proceeds.

Returns

numeric. angle in degrees

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)

References

Mardia, K.V., and Jupp, P.E (1999). Directional Statistics, Wiley Series in Probability and Statistics. John Wiley & Sons, Inc., Hoboken, NJ, USA. tools:::Rd_expr_doi("10.1002/9780470316979")

  • Maintainer: Tobias Stephan
  • License: GPL (>= 3)
  • Last published: 2025-03-01