Join consecutive events in event list evts. The result of joining two events A and B is a event with begin time of A and end time of B.
hsJoinEvents(evts, ..., renumber = TRUE, dbg = FALSE)
data frame containing events as provided by e.g. hsEvents
numeric vectors containing the event numbers to be joined, e.g. 5:10, 15:20 will join events 5 to 10 and 15 to 20 to one event in each case
if TRUE, rows in result data frame are renumbered from one to number of rows.
if TRUE
, debug messages are shown.
A 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).