powered by
Returns a logical vector like y showing if each element lies in the closed interval [min(x1, x2), max(x1, x2)].
y
[min(x1, x2), max(x1, x2)]
between(y, x1, x2)
a numeric object
a number
A logical object like y.
# NOT RUN { mat <- matrix(rnorm(16), 4, 4) mat between(mat, -2, 1) # }
Run the code above in your browser using DataLab