fn builtin_quantile(
args: &[RValue],
named: &[(String, RValue)],
) -> Result<RValue, RError>Expand description
Sample quantiles.
Computes quantiles using type 7 (R default): for probability p and sorted data of length n, h = (n-1)*p, result = x[floor(h)] + (h - floor(h)) * (x[ceil(h)] - x[floor(h)]).
@param x numeric vector @param probs numeric vector of probabilities (default: c(0, 0.25, 0.5, 0.75, 1)) @param na.rm logical; remove NAs before computing? (default FALSE) @param type integer; quantile algorithm type (only type 7 supported) @return named numeric vector of quantiles