Description Usage Arguments Value Author(s) Examples
Calculate the 11 pecentiles for the vector x
, or
the 0th, 25th, 50th, 75th, 100th and mean value for the vector x
Calculate the 0th, 25th, 50th, 75th, 100th and mean value for the vector x
1 2 3 | percentile(x, probs = seq(0, 1, 0.1), ...)
quartile(x, ...)
|
x |
a numeric vector |
probs |
a vector or probabilities |
... |
further arguments passed to |
percentile
: a named vector of length 11, names = the percentiles
quartile
: a named vector of length 6, names = the quartiles, “mean”
Mark Cowley, 21 June 2005
1 2 3 | x <- rnorm(25,0,1)
percentile(x)
quartile(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.