quantile.numerics {DTwrappers2} | R Documentation |
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 class 'numerics'
quantile(x, probs, na.rm = TRUE)
x |
A vector to calculate quantiles for. |
probs |
A numeric vector of probabilities with values in [0,1]. |
na.rm |
A logical value indicating whether NA values should be stripped before the computation proceeds. Defaults toTRUE. |
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.