within | R Documentation |
Compare a vector within (between) other values
between_more(x, left, right, type = c("gele", "gel", "gle", "gl"))
within(x, left = NULL, right = NULL, bounds = c("[]", "[)", "(]", "()"))
x |
A numeric vector of values |
left , right |
Boundary values. For |
type |
Abbreviation for the evaluation of |
bounds |
Boundaries for comparisons of |
type``,
bounds“ can be one of the below:
is greater than (>)
greater than or equal to (>=)
less than (<)
less than or equal to (<=)
Note: between_more()
may be deprecated in the future in favor of just
within()
A logical vector
between_more(2:10, 2, 10, "gl")
within(2:10, 2, bounds = "()")
between_more(10, 2, 10, "gle")
within(2:10, bounds = "(]")
within(1:5, c(3, 3, 2, 2, 1), 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.