Learn R Programming

textgRid

The software application Praat can be used to annotate waveform data (e.g., to mark intervals of interest or to label events). These annotations are stored in a Praat TextGrid object, which consists of a number of interval tiers and point tiers. An interval tier consists of sequential (i.e., not overlapping) labeled intervals. A point tier consists of labeled events that have no duration. The textgRid package provides S4 classes, generics, and methods for accessing information that is stored in Praat TextGrid objects.

S4 classes:

The textgRid package defines four S4 classes, whose slots and accessors are described in the tables below.

Tier
SlotTypeAccessor
@namecharactertierName()
@numbernumerictierNumber()
IntervalTier (inherits from Tier)
SlotTypeAccessor
@startTimesnumericintervalStartTimes()
@endTimesnumericintervalEndTimes()
@labelscharacterintervalLabels()
PointTier (inherits from Tier)
SlotTypeAccessor
@timesnumericpointTimes()
@labelscharacterpointLabels()
TextGrid
SlotTypeAccessor
@.Datalist (of IntervalTiers and PointTiers)
@startTimenumerictextGridStartTime()
@endTimenumerictextGridEndTime()

TextGrid object instantiation:

An instance of the TextGrid class is created with the S4 generic function TextGrid().

Copy Link

Version

Install

install.packages('textgRid')

Monthly Downloads

68

Version

1.0.1

License

GPL-3

Maintainer

Patrick Reidy

Last Published

September 21st, 2016

Functions in textgRid (1.0.1)

textgRid

textgRid: Praat TextGrid Objects in R
PointTier-constructor

Create an instance of the PointTier class.
IntervalTier-accessors

Access the slots of IntervalTier objects.
IntervalTier-constructor

Create an instance of the IntervalTier class.
findIntervals

Find intervals within an IntervalTier.
TextGrid-constructor

Create an instance of the TextGrid class.
PointTier-accessors

Access the slots of PointTier objects.
TextGrid-accessors

Access the slots of TextGrid objects.
Tier-accessors

Methods for Tier objects.
findPoints

Find points within a PointTier.