Description Usage Arguments Details
Calculate the quantiles of an lvec
1 2 3 4 5 6 7 8 9 |
x |
an object of type |
probs |
a numeric vector with probabilities ([0,1]). |
names |
add names to the result vector. |
na.rm |
remove missing values before calculating the quantiles |
true_probs |
add an attribute with the probabilities at the chosen pivots. |
... |
ignored. |
This function uses a more simple method than that used by the regular
quantile
method. It sorts the vector (using
partial_sort
for speed) and selects elements from x
that correspond to the given probabilities. For example, when x
has
length of 11 and prob
equal to 0.5, it selects the 6th element from
the (partially) sorted x
. For large enough vectors this is a
reasonable approach.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.