Find the choice that is less than a value
find_less.RdFind the choice that is less than a value
Usage
find_less(x, choices, include_same = TRUE, none = c("first", "na"))Arguments
- x
The vector of values to select choices for.
- choices
The choices that are to be selected from.
- include_same
Include if the choice is
<=and not strictly<.- none
What if the
xvalue is less than (or less than or equal to ifinclude_same) all the choices? Choose the"first"choice or insert anNAvalue?