Skip to contents

The median of the angular distances from the circular median.

Usage

circ_mad(x, na_rm = TRUE)

Arguments

x

A numeric vector of angles, in radians.

na_rm

A logical value (default TRUE) determining whether missing values are removed before computing. When FALSE, any NA gives NA.

Value

A single non-negative number in radians, or NA_real_ when there is nothing to summarise.

Examples

circ_mad(c(0.1, 0.2, 6.2))
#> [1] 0.1