Check for Inclusion in a Closed Interval
Returns a logical vector like y
showing if each element
lies in the closed interval [min(x1, x2), max(x1, x2)]
.
between(y, x1, x2)
y |
a numeric object |
x1 |
a number |
x2 |
a number |
A logical object like y
.
mat <- matrix(rnorm(16), 4, 4) mat between(mat, -2, 1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.