powered by
Function to compute seven-number summaries (minimum, 1st octile, 1st quartile, median, 3rd quartile, 7th octile, maximum)
sevenNS(x, na.rm = TRUE, type = 7)
A numeric vector of length 7 containing the summary information.
numeric vector
logical; remove NA before the computations.
NA
an integer between 1 and 9 selecting one of nine quantile algorithms; for more details see quantile.
quantile
Matthias Kohl Matthias.Kohl@stamats.de
In contrast to Tukey (1977) who proposes hinges and eighths, we use function quantile.
Tukey, J.W. (1977). Exploratory Data Analysis. Section 2G.
fivenum, quantile
fivenum
x <- rnorm(100) sevenNS(x) sevenNS(x, type = 2)
Run the code above in your browser using DataLab