View source: R/check_helpers.R
check_order | R Documentation |
This function checks the order of maximum of three numeric vectors: lower, usual, and upper. It returns the indices where the order is incorrect (i.e., lower > upper, lower > usual, or usual > upper). It is used internally in the package to validate the order of values in ATC and package parameters.
check_order(lower, usual = NULL, upper)
lower |
a numeric vector representing the lower limit. |
usual |
a numeric vector representing the usual value (optional). |
upper |
a numeric vector representing the upper limit. |
a vector of indices where the order of values is incorrect (i.e., lower > upper, lower > usual, or usual > upper).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.