Description Usage Arguments Value
View source: R/helper_functions.R
Checking if elements of a vector belongs to a exclusive interval from min to max
1 | is.between(x, min, max)
|
x |
A numeric vector/scalar |
min |
the lower bound of the exclusive interval |
max |
the upper bound of the exclusive interval |
True or False for valid comparison result. If min
> max
, the function return 0.
#@export #@examples #is.between(3, 1, 6) #TRUE #is.between(7, 1, 6) #FALSE #is.between(5, 4, 1) #0
#is.between(c(1,3,2,7), 1, 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.