valmetrics (version 1.0.0)

iqr: iqr

Description

Calculates the Inter-quartile range (IQR) from a vector of observed values.

Usage

iqr(o)

Arguments

o

A numeric vector. Observed values.

Value

Inter-quartile range (IQR).

Details

The inter-quartile range (IQR) is the difference between the 75-percentile and the 25-percentile of the observed values.

Examples

Run this code
# NOT RUN {
obs<-c(1:10)
iqr(o=obs)
# }

Run the code above in your browser using DataLab