tg.duplicateTier: tg.duplicateTier

Description Usage Arguments Value See Also Examples

View source: R/tg.R

Description

Duplicates tier originalInd to new tier with specified index newInd (existing tiers are shifted). It is highly recommended to set a name to the new tier (this can also be done later by tg.setTierName()). Otherwise, both original and new tiers have the same name which is permitted but not recommended. In such a case, we cannot use the comfort of using tier name instead of its index in other functions.

Usage

1
tg.duplicateTier(tg, originalInd, newInd = Inf, newTierName = "")

Arguments

tg

TextGrid object

originalInd

tier index or "name"

newInd

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

newTierName

[optional but recommended] name of the new tier

Value

TextGrid object

See Also

tg.duplicateTierMergeSegments, tg.setTierName, tg.removeTier

Examples

1
2
3
tg <- tg.sample()
tg2 <- tg.duplicateTier(tg, "word", 1, "NEW")
tg.plot(tg2)

Example output



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