View source: R/event_metrics.R
event_gaps | R Documentation |
Returns the intervals over which there are no events.
event_gaps(e, closed = TRUE, range = NULL)
e |
An event table. |
closed |
Logical value indicating whether events should be interpreted as closed intervals. If |
range |
An event table specifying, by its |
event_coverage
for coverage (the inverse of gaps), fill_event_gaps
for filling gaps with empty events.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.