Converts event durations and pauses before and after events to the requested time unit. The time unit will be stored in the attribute “tUnit” of the returned data frame.
hsEventsToUnit(evts, tUnit)
data frame representing events as provided by hsEvents
time unit to which durations and pauses shall be converted.
data frame containing events with durations (and pauses) given in the new time unit.