Checks if values are outside of an interval (open on the right)
Source:R/in_interval.R
nin.interval.ro.Rd
This function checks if the values in the x
parameter are contained in the interval [lo
, hi
).
NA
values are treated as "not in the interval".
Examples
nin.interval.ro(c(-1, 0, 1, 2), 0, 1)
#> [1] TRUE FALSE TRUE TRUE
nin.interval.ro(NA, 1, 3)
#> [1] TRUE