between {dplyr} | R Documentation |
This is a shortcut for x >= left & x <= right
, implemented
efficiently in C++ for local values, and translated to the
appropriate SQL for remote tables.
between(x, left, right)
x |
A numeric vector of values |
left, right |
Boundary values |
x <- rnorm(1e2) x[between(x, -1, 1)]