fquantile | R Documentation |
This function is a faster implementation of the "type 7" quantile()
algorithm and is modified from this gist:
https://gist.github.com/sikli/f1775feb9736073cefee97ec81f6b193
It returns sample quantiles corresponding to the given probabilities.
The smallest observation corresponds to a probability of 0 and the largest
to a probability of 1. For speed, output quantile names are removed as are
error handling such as checking if x are factors, or if probs lie outside
the [0,1]
range.
fquantile(x, probs = seq(0, 1, 0.25), na.rm = FALSE)
x |
numeric vector whose sample quantiles are wanted. |
probs |
numeric vector of probabilities with values in |
na.rm |
logical; if |
A vector of length length(probs)
is returned;
library(logitr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.