Additional functionality and expansion of dplyr::between
Usage
between_more(x, left, right, type = c("gele", "gel", "gle", "gl"))
Arguments
- x
A numeric vector of values
- left, right
Boundary values
- type
Abbreviation for the evaluation of
left
onright
(see details)
Details
Type can be one of the below:
- g
is greater than (>)
- ge
greater than or equal to (>=)
- l
less than (<)
- ls
less than or equal to (<=)
Examples
between_more(10, 2, 10, "gl")
#> [1] FALSE
between_more(10, 2, 10, "gle")
#> [1] TRUE
between_more(1:5, c(3, 3, 2, 2, 1), 5)
#> [1] FALSE FALSE TRUE TRUE TRUE