R: Mid-range

midrange {statip} | R Documentation

## Mid-range

### 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.

### References

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

[Package statip version 0.2.3 Index]