check_range: Check whether a quantity is within an acceptable range

View source: R/utilities.R

check_rangeR Documentation

Check whether a quantity is within an acceptable range

Description

Check whether a quantity is within an acceptable range

Usage

check_range(x, xmin = 0, xmax = 1)

Arguments

x

numeric, or coercible to numeric

xmin

numeric; the minimum value of the acceptable range

xmax

numeric; the maximum value of the acceptable range

Value

see stopifnot

Note

This function throws and error if range of x is outside [xmin,xmax].

Author(s)

Andrew J. Barbour <andy.barbour@gmail.com>


abarbour/deform documentation built on Dec. 5, 2024, 1:55 p.m.