TextGrid-constructor: Create an instance of the TextGrid class.

Description Usage Arguments Value Details for signature c(textGrid = 'character') See Also

Description

An S4 generic and S4 methods for creating a TextGrid object.

Usage

1
2
3
4
TextGrid(textGrid, ...)

## S4 method for signature 'character'
TextGrid(textGrid, encoding = NULL)

Arguments

textGrid

A character vector

...

optional arguments for multiple dispatch (in development).

encoding

The character encoding of the .TextGrid file. If NULL, then the encoding of the file is guessed using guess_encoding. Plausible encodings that might be used by Praat are "ASCII", "UTF-8", or "UTF-16BE" (if non-ASCII characters occur in the TextGrid).

Value

A TextGrid object.

Details for signature c(textGrid = 'character')

If textGrid is a string (i.e., a character vector with length(textGrid)=1), then it is assumed that the textGrid argument is the path to a .TextGrid file. Otherwise, the textGrid argument is assumed to be a character vector whose elements are the lines of some .TextGrid file.

See Also

TextGrid-class, TextGrid-accessors


patrickreidy/textgRid documentation built on May 6, 2019, 8:35 p.m.