Learn R Programming

statip (version 0.2.3)

trimean: Tukey's trimean

Description

Compute the trimean of a numeric vector x.

Usage

trimean(x, na_rm = FALSE, ...)

Arguments

x

numeric. A numeric vector.

na_rm

logical. Should missing values be removed before computing the trimean?

...

Additional arguments to be passed to quantile().

Value

A numeric value, the trimean.

References

https://en.wikipedia.org/wiki/Trimean