%btwn% {BBmisc} | R Documentation |
Check if some values are covered by the range of the values in a second vector.
x %btwn% y
x |
[ |
y |
[ |
[logical(n)
]. For each value in x
: Is it in the range of y
?
x = 3
y = c(-1,2,5)
x %btwn% y
## [1] TRUE