h_get_which_violates: Get Proper Version of which_violates Function
Description
An internal function that prepares a simple 2-arguments wrapper of
base::which() that checks whether its first argument exceeds the second
one. Both arguments are numeric. This excess is hard coded in the returned
wrapper function and it is defined either as \(>=\) ("greater or equal")
or \(<=\) ("lower or equal"), depending on the value of the geq flag.
Usage
h_get_which_violates(geq = TRUE)
Value
2-arguments function that checks whether its first argument exceeds
the second one. Both arguments must be numeric.
Arguments
geq
(flag) if TRUE, then "greater or equal" condition is set.
Otherwise, "less then or equal" is set.