R/btwn.R
btwn.Rd
Tests whether values in x are between the minimum and maximum of y.
x %btwn% y
[numeric(n)] Value(s) that should be within the range of y.
numeric(n)
y
[numeric] Numeric vector which defines the range.
numeric
[logical(n)]. For each value in x: Is it in the range of y?
logical(n)
x
x = 3 y = c(-1,2,5) x %btwn% y #> [1] TRUE