hsJoinEvents | R Documentation |
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)
evts |
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 |
renumber |
if TRUE, rows in result data frame are renumbered from one to number of rows. |
dbg |
if |
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).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.