iqr {valmetrics}R Documentation

iqr

Description

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

Usage

iqr(o)

Arguments

o

A numeric vector. Observed values.

Details

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

Value

Inter-quartile range (IQR).

Author(s)

Kristin Piikki, Johanna Wetterlind, Mats Soderstrom and Bo Stenberg, E-mail: kristin.piikki@slu.se

Examples

obs<-c(1:10)
iqr(o=obs)

[Package valmetrics version 1.0.0 Index]