Description Usage Arguments Value Note Author(s)
Check whether a quantity is within an acceptable range
1 | check_range(x, xmin = 0, xmax = 1)
|
x |
numeric, or coercible to numeric |
xmin |
numeric; the minimum value of the acceptable range |
xmax |
numeric; the maximum value of the acceptable range |
see stopifnot
This function throws and error if range of x
is outside [xmin
,xmax
].
Andrew J. Barbour <andy.barbour@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.