| mapToIntervals.numeric | R Documentation |
Maps values to intervals by returning an index vector specifying the (first)
interval that each value maps to, if any.
## S3 method for class 'numeric'
mapToIntervals(x, intervals, includeLower=TRUE, includeUpper=TRUE, ...)
x |
A |
intervals |
The N intervals to be matched against.
If an Nx2 |
includeLower, includeUpper |
If |
... |
Not used. |
Returns an integer vector of length K.
Values that do not map to any interval have return value NA.
Henrik Bengtsson
inAnyInterval().
match().
findInterval().
cut().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.