Learn R Programming

rPraat (version 1.3.2-1)

tg.insertNewPointTier: tg.insertNewPointTier

Description

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

Usage

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

Run this code
# 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)
# }

Run the code above in your browser using DataLab