| mapToIntervals.numeric {R.utils} | R Documentation |
Maps values to intervals
Description
Maps values to intervals by returning an index vector specifying the (first)
interval that each value maps to, if any.
Usage
## S3 method for class 'numeric'
mapToIntervals(x, intervals, includeLower=TRUE, includeUpper=TRUE, ...)
Arguments
x |
|
intervals |
The N intervals to be matched against.
If an Nx2 |
includeLower, includeUpper |
If |
... |
Not used. |
Value
Returns an integer vector of length K.
Values that do not map to any interval have return value NA.
Author(s)
Henrik Bengtsson
See Also
inAnyInterval().
match().
findInterval().
cut().
[Package R.utils version 2.12.3 Index]