tg.insertNewPointTier: tg.insertNewPointTier

Description Usage Arguments Value See Also Examples

View source: R/tg.R

Description

Inserts new point tier to the specified index (existing tiers are shifted).

Usage

1
tg.insertNewPointTier(tg, newInd = Inf, newTierName)

Arguments

tg

TextGrid object

newInd

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

newTierName

new tier name

Value

TextGrid object

See Also

tg.insertPoint, tg.insertNewIntervalTier, tg.duplicateTier, tg.removeTier

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
tg <- tg.sample()
tg2 <- tg.insertNewPointTier(tg, 1, "POINTS")
tg2 <- tg.insertPoint(tg2, "POINTS", 3, "MY POINT")
tg2 <- tg.insertNewPointTier(tg2, Inf, "POINTS2")  # the last tier
tg2 <- tg.insertPoint(tg2, "POINTS2", 2, "point in the last tier")
tg.plot(tg2)

## End(Not run)

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