View source: R/interval-information.R
get_intervals | R Documentation |
Information on intervals in which times fall
get_intervals(x, times, ...)
## Default S3 method:
get_intervals(x, times, left.open = TRUE, rightmost.closed = TRUE, ...)
x |
An object from which interval information can be obtained,
see |
times |
A vector of times for which corresponding interval information should be returned. |
... |
Further arguments passed to |
left.open |
logical; if true all the intervals are open at left
and closed at right; in the formulas below, |
rightmost.closed |
logical; if true, the rightmost interval,
|
A data.frame
containing information on intervals in which
values of times
fall.
findInterval
int_info
set.seed(111018)
brks <- c(0, 4.5, 5, 10, 30)
int_info(brks)
x <- runif (3, 0, 30)
x
get_intervals(brks, x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.