Description Usage Arguments Value See Also Examples
View source: R/interval_info.R
Information on intervals in which times fall
1 2 3 4 | 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, ≤ should be
swapped with < (and > with ≥), and
|
rightmost.closed |
logical; if true, the rightmost interval,
|
A data.frame
containing information on intervals in which
values of times
fall.
1 2 3 4 5 6 | 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.