Description Usage Arguments Value Author(s) See Also Examples
Returns which interval (if any) each number in a vector belongs to, given a set of
user-defined intervals. Intervals can be specified using either two-column matrices or
Intervals
objects from the intervals
package.
1 2 3 | whichInterval(x, Intv)
which_interval(x, Intv)
|
x |
A vector of numeric values |
Intv |
A two-column matrix or an object of class Intervals |
For each value in x: if x[i] is in the set of intervals, the index of the corresponding interval(s), NA if no interval contains x[i]
Simon Barthelme
%In%
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.