Learn R Programming

scbursts (version 1.6)

dwt.read: 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

Run this code
# NOT RUN {
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")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab