Events in data frames events1 and events2 are merged in such a way that overlapping events are combined to one event and events that are fully contained in other events are discarded.
hsMergeEvents(events1, events2, renumber = TRUE, dbg = FALSE)
data frame containing events as provided by e.g. hsEvents
data frame containing events as provided by e.g. hsEvents
if TRUE, rows in result data frame are renumbered from one to number of rows.
if TRUE
, debug messages are shown.
data frame with fields tBeg, tEnd, dur containing the times of event begin and event end and the event duration in seconds, respectively. The event duration is the difference between end and begin of the event plus the time period that one timestamp represents (signal width).