Description Usage Arguments Details Value See Also Examples
Get quantile
with rounded output
1 2 | KH.quant.n(x, p, decimal = KH.get(variable = "decimal", default = 1),
...)
|
x |
numeric. Vector of numbers to calculate quantile. |
p |
numeric. Vector or value of probabilities. |
decimal |
integer. Set precision for vectors in resultant quantile. Default is |
... |
Dots. An arbitrary number and variety of arguments, passing arguments on to |
Just a wrapper for the generic quantile
function with extra rounding.
numeric. quantile of the vector rounded to the given precision.
Other Stats: KH.IQR
, KH.max
,
KH.mean
, KH.median
,
KH.min
, KH.nineNumbers.by
,
KH.nineNumbers.table
,
KH.nineNumbers.total
,
KH.quant.10
, KH.quant.25
,
KH.quant.75
, KH.sd
1 2 3 4 5 6 7 8 | set.seed(100)
KH.quant.n(c(rnorm(10, sd = 1)), 0.10)
# 10%
#-0.61
set.seed(100)
KH.quant.n(c(rnorm(10, sd = 1)), 0.10, decimal = 3)
# 10%
#-0.606
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.