inv_quantile: Get the quantile(s) corresponding to a vector of values.

View source: R/miscellaneous.R

inv_quantileR Documentation

Get the quantile(s) corresponding to a vector of values.

Description

inv_quantile returns the quantile(s) for a specific value or vector of values.

Usage

inv_quantile(y, values, digits = NULL)

Arguments

y

a numeric vector/variable.

values

the values or vector of specific values in y for which you would like the to know the quantiles

digits

determines the how many digits the result is rounded to

Author(s)

Craig P. Hutton, Craig.Hutton@gov.bc.ca

See Also

ecdf, round

Examples

y <- c(1:100)
inv_quantile(y = y, values = c(2, 25, 50, 75, 95), digits = 2)


bcgov/elucidate documentation built on Sept. 3, 2022, 7:16 p.m.