calc_pctl | R Documentation |
Wrapper around quantile
that returns a list and better names.
Thus, also easier usable within j of data.table's.
calc_pctl(x, p, prefix = "p", ...)
x |
numeric vector |
p |
same as probs in |
prefix |
prefix to add before percentile value (default: 'p') |
... |
other arguments passed to |
list of percentiles with names "prefixX", where X is the percentile (probs*100).
x <- rnorm(1000)
calc_pctl(x)
calc_pctl(x, prefix = "pctl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.