isBetween | R Documentation |
Assess if x
is between left
and right
bounds.
Shortcut for x >= left & x <= right
if strict=FALSE
(default).
Shortcut for x > left & x < right
if strict=TRUE
.
isBetween(x, left, right, strict = FALSE)
x |
Numeric values to assess |
left |
Numeric value(s) used as lower bound |
right |
Numeric value(s) used as upper bound |
strict |
Logical value defining if |
Logical values
isBetween(1:12, 7, 9)
x <- rnorm(1e2)
x[isBetween(x, -1, 1)]
isBetween(x, cos(x) + 1, cos(x) - 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.