powered by
x >= left & x <= right
between(x, left, right)
x <- rnorm(1e2) x[between(x, -1, 1)]
Run the code above in your browser using DataLab