This internal function calculates the quantiles for a numeric or complex vector. If the input vector is not numeric or complex, it returns a vector of NA of the same length as the provided probabilities.
# S3 method for numerics
quantile(x, probs, na.rm = TRUE)A vector of quantiles corresponding to the specified probabilities if x is numeric or complex. If x is not numeric or complex, returns a vector of NA.
A vector to calculate quantiles for.
A numeric vector of probabilities with values in [0,1].
A logical value indicating whether NA values should be stripped before the computation proceeds. Defaults toTRUE.