Description
Compute the mid-range of a numeric vector x
,
defined as the mean of the minimum and the maximum.
Usage
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.