evt.to_dwells {scbursts} | R Documentation |
Calculate pulse lengths. Converts transition times to dwell durations.
evt.to_dwells(tables)
tables |
Either a single table or a list of tables with columns "states" and "times" |
A segment or a list of segments with one less row, where each row represents pulse in state 0 (closed dwell) of duration 0.51231, instead of the time at which the state transitioned.
infile <- system.file("extdata", "example1_tac.evt", package = "scbursts")
transitions <- evt.read(infile)
dwells <- evt.to_dwells(transitions)
head(dwells[[1]])