Maps values to intervals
Maps values to intervals by returning an index
vector specifying the (first)
interval that each value maps to, if any.
# S3 method for numeric mapToIntervals(x, intervals, includeLower=TRUE, includeUpper=TRUE, ...)
The N intervals to be matched against. If an Nx2
matrix, the first column should be the lower bounds and the second column the upper bounds of each interval. If a
vectorof length 2N, each consecutive pair should be the lower and upper bounds of an interval.
- includeLower, includeUpper
TRUE, the lower (upper) bound of each interval is included in the test, otherwise not.