dplyr::between(x, a, b) # a<= x & x <= b
> dplyr::between(1,2,3) [1] FALSE > dplyr::between(2,1,3) [1] TRUE