tquantile | R Documentation |
Calculate sample quantiles from a t-Digest
tquantile(td, probs) ## S3 method for class 'tdigest' quantile(x, probs = seq(0, 1, 0.25), ...)
td |
t-Digest object |
probs |
numeric vector of probabilities with values in range 0:1 |
x |
numeric vector whose sample quantiles are wanted |
... |
unused |
a numeric
vector containing the requested quantile values
Computing Extremely Accurate Quantiles Using t-Digests
set.seed(1492) x <- sample(0:100, 1000000, replace = TRUE) td <- tdigest(x, 1000) tquantile(td, c(0, .01, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.99, 1)) quantile(td)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.