tg.write: tg.write

Description Usage Arguments See Also Examples

View source: R/tg.R

Description

Saves TextGrid to the file. TextGrid may contain both interval and point tiers (tg[[1]], tg[[2]], tg[[3]], etc.). If tier type is not specified in $type, is is assumed to be "interval". If specified, $type have to be "interval" or "point". If there is no class(tg)["tmin"] and class(tg)["tmax"], they are calculated as min and max of all tiers. The file is saved in UTF-8 encoding.

Usage

1
tg.write(tg, fileNameTextGrid, format = "short")

Arguments

tg

TextGrid object

fileNameTextGrid

Output file name

format

Output file format ("short" (default, short text format) or "text" (a.k.a. full text format))

See Also

tg.read, pt.write

Examples

1
2
3
4
5
## Not run: 
tg <- tg.sample()
tg.write(tg, "demo_output.TextGrid")

## End(Not run)

rPraat documentation built on Dec. 9, 2018, 1:04 a.m.