powered by
Determine if a value is contained in the interval.
# S3 method for interval has(object, x)
Logical vector indicating containment.
An interval object.
A vector of values.
iv <- interval$new(lower = 0, upper = 1) has(iv, 0.5) # TRUE has(iv, 2.0) # FALSE
Run the code above in your browser using DataLab