midrange: Mid-range

Description Usage Arguments Value References

View source: R/midrange.R

Description

Compute the mid-range of a numeric vector x, defined as the mean of the minimum and the maximum.

Usage

1
midrange(x, na_rm = FALSE)

Arguments

x

numeric. A numeric vector.

na_rm

logical. Should missing values be removed before computing the mid-range?

Value

A numeric value, the mid-range.

References

https://en.wikipedia.org/wiki/Mid-range.


statip documentation built on Nov. 18, 2019, 1:06 a.m.