fiveNS | R Documentation |
Function to compute five-number summaries (minimum, 1st quartile, median, 3rd quartile, maximum)
fiveNS(x, na.rm = TRUE, type = 7)
x |
numeric vector |
na.rm |
logical; remove |
type |
an integer between 1 and 9 selecting one of nine quantile
algorithms; for more details see |
In contrast to fivenum
the functions computes the
first and third quartile using function quantile
.
A numeric vector of length 5 containing the summary information.
Matthias Kohl Matthias.Kohl@stamats.de
fivenum
, quantile
x <- rnorm(100) fiveNS(x) fiveNS(x, type = 2) fivenum(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.