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, tg.boundaryMagnet

Examples

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

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