KH.IQR: Get 'IQR' with rounded output

Description Usage Arguments Details Value See Also Examples

View source: R/Stats.R

Description

Get IQR with rounded output

Usage

1
KH.IQR(x, decimal = KH.get(variable = "decimal", default = 1), ...)

Arguments

x

numeric. Vector of numbers to calculate interquartile range.

decimal

integer. Set precision for vectors in resultant interquartile range. Default is decimal in package.

...

Dots. An arbitrary number and variety of arguments, passing arguments on to IQR function.

Details

Just a wrapper for the generic IQR function with extra rounding.

Value

numeric. IQR of the vector rounded to the given precision.

See Also

IQR

Other Stats: KH.max, KH.mean, KH.median, KH.min, KH.nineNumbers.by, KH.nineNumbers.table, KH.nineNumbers.total, KH.quant.10, KH.quant.25, KH.quant.75, KH.quant.n, KH.sd

Examples

1
2
3
4
5
6
set.seed(100)
KH.IQR(c(rnorm(10, sd = 1)))
#[1] 0.74
set.seed(100)
KH.IQR(c(rnorm(10, sd = 1)), decimal = 3)
#[1] 0.738

ks465/r-utils documentation built on May 23, 2019, 5:07 p.m.