Calculate interquartile range

iqr(x)

Arguments

x

vector

Value

numeric vector of length 2, with the 25th and 75th quantiles of input vector x.

Details

Calculates the 25th and 75th quantiles given a vector x; used in function dhist.