Description Usage Arguments Examples
This function determines whether elements of a numeric
vector x
lie within boundaries [lo, hi)
.
Marginally slower than the R equivalent code x >= lo
& x < hi
for small vectors; much faster for very large
vectors.
1 | in_interval(x, lo, hi, include.lower = TRUE, include.upper = FALSE)
|
x |
numeric. vector of numbers. |
lo |
numeric, length 1. lower boundary. |
hi |
numeric, length 1. upper boundary. |
include.lower |
boolean. include the lower endpoint? |
include.upper |
boolean. include the upper endpoint? |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.