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, ...)If TRUE, the lower (upper) bound
of each interval is included in the test, otherwise not.
Not used.
Returns an integer vector of length K.
Values that do not map to any interval have return value NA.
inAnyInterval().
match().
findInterval().
cut().