check_range: Check whether a quantity is within an acceptable range

Description Usage Arguments Value Note Author(s)

View source: R/utilities.R

Description

Check whether a quantity is within an acceptable range

Usage

1
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 Feb. 15, 2022, 6:24 p.m.