powered by
This is a shortcut for x >= left & x <= right.
x >= left & x <= right
between(x, left, right)
A numeric vector of values.
numeric
Boundary values.
A logical vector the same length as x.
logical
x
# NOT RUN { between(1:12, 7, 9) x <- rnorm(1e2) x[between(x, -1, 1)] # }
Run the code above in your browser using DataLab