evt.to_dwells {scbursts}R Documentation

Calculate pulse lengths. Converts transition times to dwell durations.

Description

Calculate pulse lengths. Converts transition times to dwell durations.

Usage

evt.to_dwells(tables)

Arguments

tables

Either a single table or a list of tables with columns "states" and "times"

Value

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.

Examples


infile <- system.file("extdata", "example1_tac.evt", package = "scbursts")
transitions <- evt.read(infile)
dwells <- evt.to_dwells(transitions)
head(dwells[[1]])


[Package scbursts version 1.6 Index]