"inverted" events: gaps between ends of events and begins of next events

invertedEvents(events)

Arguments

events

data frame with columns tBeg (begin of event) and tEnd (end of event), representing events