Convert to Data Frame of Events
Usage
toEvents(
events,
signalWidth = .getSignalWidth(events, default = NA),
timeUnit = "s",
pause = TRUE,
timeDifferences = NULL
)
Arguments
- events
data frame with columns tBeg (event begins) and tEnd (event ends)
- signalWidth
see description in
hsEvents
- timeUnit
time unit of event duration and event pauses
- pause
if TRUE, pauses before and after the events are calculated
- timeDifferences
if time differences have been calculated beforehand, these may be given here (in seconds)