get_intervals {pammtools} | R Documentation |
Information on intervals in which times fall
Description
Information on intervals in which times fall
Usage
get_intervals(x, times, ...)
## Default S3 method:
get_intervals(x, times, left.open = TRUE, rightmost.closed = TRUE, ...)
Arguments
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,
|
Value
A data.frame
containing information on intervals in which
values of times
fall.
See Also
Examples
set.seed(111018)
brks <- c(0, 4.5, 5, 10, 30)
int_info(brks)
x <- runif (3, 0, 30)
x
get_intervals(brks, x)
[Package pammtools version 0.5.93 Index]