Return quantile number information for numeric vector entries

Return quantile number information for numeric vector entries

aux_quantilenumber(x, probs = c(0.25, 0.5, 0.75), na.rm = TRUE)

Arguments

x

Vector with numeric entries

probs

Numeric vector with quantiles to use

na.rm

Logical defining if NAs should be removed or not

Value

List with two elements. First: Vector of the same length as x. If BLOW (<) the first quantile in probs an element of 1 is present. If between first (>=)and second (<) quantile then a 2 is present, ... If above or equal (>=) the last quantile then number of elements in probs+1 is present. Second: vector of quantiles.