event_gaps {linbin} | R Documentation |
Event Gaps
Description
Returns the intervals over which there are no events.
Usage
event_gaps(e, closed = TRUE, range = NULL)
Arguments
e |
An event table. |
closed |
Logical value indicating whether events should be interpreted as closed intervals. If |
range |
An event table specifying, by its |
See Also
event_coverage
for coverage (the inverse of gaps), fill_event_gaps
for filling gaps with empty events.
Examples
event_gaps(events(c(1, 3, 5), c(2, 4, 5))) # gaps between events
event_gaps(events(1:5)) # no gaps
event_gaps(events(1:5), closed = FALSE) # gaps at breaks
event_gaps(events(1:5), range = events(0, 6)) # gaps to edge of range
[Package linbin version 0.1.3 Index]