tg.insertNewIntervalTier: tg.insertNewIntervalTier

Description Usage Arguments Value See Also Examples

View source: R/tg.R

Description

Inserts new interval tier to the specified index (existing tiers are shifted). The new tier contains one empty interval from beginning to end. Then, if we add new boundaries, this interval is divided to smaller pieces.

Usage

1
tg.insertNewIntervalTier(tg, newInd = Inf, newTierName, tMin = NA, tMax = NA)

Arguments

tg

TextGrid object

newInd

new tier index (1 = the first, Inf = the last [default])

newTierName

new tier name

tMin

[optional] start time of the new tier

tMax

[optional] end time of the new tier

Value

TextGrid object

See Also

tg.insertInterval, tg.insertNewPointTier, tg.duplicateTier, tg.duplicateTierMergeSegments, tg.removeTier

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
tg <- tg.sample()
tg2 <- tg.insertNewIntervalTier(tg, 1, "INTERVALS")
tg2 <- tg.insertBoundary(tg2, "INTERVALS", 0.8)
tg2 <- tg.insertBoundary(tg2, "INTERVALS", 0.1, "Interval A")
tg2 <- tg.insertInterval(tg2, "INTERVALS", 1.2, 2.5, "Interval B")
tg2 <- tg.insertNewIntervalTier(tg2, Inf, "LastTier")
tg2 <- tg.insertInterval(tg2, "LastTier", 1, 3, "This is the last tier")
tg.plot(tg2)

## End(Not run)

bbTomas/rPraat documentation built on Dec. 26, 2021, 2:08 a.m.