dwt.write {scbursts}R Documentation

Write a dwt file to disk. Writes DOS line endings. Dwells are in milliseconds

Description

Write a dwt file to disk. Writes DOS line endings. Dwells are in milliseconds

Usage

dwt.write(segments, file = "", seg = 1, append = FALSE)

Arguments

segments

A segment or multiple segments with $dwells and $states

file

Filename to write to

seg

Segment number to write in .dwt header.

append

Add ot the end of a file or overwrite? (defaults to false)

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"))


[Package scbursts version 1.6 Index]