iqr: iqr

Description Usage Arguments Details Value Author(s) Examples

View source: R/iqr.R

Description

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

Usage

1
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

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

valmetrics documentation built on Jan. 16, 2021, 5:11 p.m.