sevenNS: Seven-Number Summaries

View source: R/sevenNS.R

sevenNSR Documentation

Seven-Number Summaries

Description

Function to compute seven-number summaries (minimum, 1st octile, 1st quartile, median, 3rd quartile, 7th octile, maximum)

Usage

sevenNS(x, na.rm = TRUE, type = 7)

Arguments

x

numeric vector

na.rm

logical; remove NA before the computations.

type

an integer between 1 and 9 selecting one of nine quantile algorithms; for more details see quantile.

Details

In contrast to Tukey (1977) who proposes hinges and eighths, we use function quantile.

Value

A numeric vector of length 7 containing the summary information.

Author(s)

Matthias Kohl Matthias.Kohl@stamats.de

References

Tukey, J.W. (1977). Exploratory Data Analysis. Section 2G.

See Also

fivenum, quantile

Examples

x <- rnorm(100)
sevenNS(x)
sevenNS(x, type = 2)

MKdescr documentation built on Nov. 10, 2022, 5:12 p.m.