powered by
y
[min(x1, x2), max(x1, x2)]
between(y, x1, x2)
mat <- matrix(rnorm(16), 4, 4) mat between(mat, -2, 1)
Run the code above in your browser using DataLab