Calculates event borders (event begin, event end) considering "parallel" events2. The returned results not ending after events1. For each event E in events1 (defined by event number, event begin and event end time), this function first identifies the "partner" events E2,i from events2 that lie within E or have an intersecton with E. There may be no, one ore more than one "partner" events.
Arguments
- events1
data frame containing the reference events, e.g. discharge events
- events2
parallel events, e.g. rain events
- eventRelations
event relations as returned by
getEventRelations
- extended
if
TRUE
, the output contains more columns as the minimum columns that are containd else:event1
,tBeg.merged
,tEnd.merged
,event2first
,event2last