Similar to which.min and which.max. The indices correspond to quantile type 3.
which.quantile(x, probs, na.rm = FALSE)
which quantiles to return
should NAs be removed before?
vector of indices corresponding to the quantiles
x <-c (2.34, 5.83, NA, 9.34, 8.53, 6.42, NA, 8.07, NA, 0.77)
probs <- c (0, .23, .5, .6, 1)
which.quantile (x, probs, na.rm = TRUE)
x [which.quantile (x, probs, na.rm = TRUE)] == quantile (x, probs, na.rm = TRUE, type = 3)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.