Checks if values are contained in an interval (open on the left)
Source:R/in_interval.R
in.interval.lo.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
in.interval.lo(c(-1, 0, 1, 2), 0, 1)
#> [1] FALSE FALSE TRUE FALSE
in.interval.lo(NA, 1, 3)
#> [1] FALSE