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.

Description

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.

Usage

## S3 method for class 'numerics'
quantile(x, probs, na.rm = TRUE)

Arguments

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.

Value

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.


[Package DTwrappers2 version 0.0.3 Index]