dwt.read: Read a .dwt file.

Description Usage Arguments Value Examples

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

scbursts documentation built on July 6, 2019, 5:02 p.m.