dwt.read {scbursts}R Documentation

Read a .dwt file.

Description

Read a .dwt file. Result is a list of "segments", which is a dataframe extra data. See "segment" for more details. Converts millisecond dwells to seconds.

Usage

dwt.read(filename, separating_factor = 1000)

Arguments

filename

Filename to read from

separating_factor

In lieu of a known time between segments, seperate with a multple of the longest dwell.

Value

A list of bursts (possibly a singleton)

Examples


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

dwt.write(dwells, file=file.path(tempdir(), "dwells.dwt"))

# Quit R, come back the next day
## Not run: 
dwells <- dwt.read("dwells.dwt")

## End(Not run)


[Package scbursts version 1.6 Index]