Skip to contents

Helper function to check that input quantiles are valid. Quantiles must be in the range specified, increase monotonically, and contain no duplicates.

This is used in bias_range() and bias_quantile() to provide informative errors to users.

Usage

check_quantiles(quantiles, name = "quantiles", range = c(0, 1))

Arguments

quantiles

Numeric vector of quantiles to check

name

Character name to use in error messages

range

Numeric vector giving allowed range

Value

None. Function errors if quantiles are invalid.