toEvents: Convert to Data Frame of Events

View source: R/eventMain.R

toEventsR Documentation

Convert to Data Frame of Events

Description

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)


KWB-R/kwb.event documentation built on June 14, 2022, 1:15 p.m.