powered by
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".
x
lo
hi
NA
nin.interval.ro(x, lo, hi)
A vector of values. (Lists will be coerced to a numeric vector.)
Left end of the interval.
Right end of the interval.
A boolean vector of the same length as x.
in.interval.lo, in.interval.ro, nin.interval.lo
# NOT RUN { nin.interval.ro(c(-1, 0, 1, 2), 0, 1) nin.interval.ro(NA, 1, 3) # }
Run the code above in your browser using DataLab