tg.duplicateTier {rPraat} | R Documentation |
tg.duplicateTier
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
tg.duplicateTier(tg, originalInd, newInd = Inf, newTierName = "")
Arguments
tg |
TextGrid object |
originalInd |
tier index or "name" |
newInd |
new tier index ( |
newTierName |
[optional but recommended] name of the new tier |
Value
TextGrid object
See Also
tg.duplicateTierMergeSegments
, tg.setTierName
, tg.removeTier
, tg.boundaryMagnet
Examples
tg <- tg.sample()
tg2 <- tg.duplicateTier(tg, "word", 1, "NEW")
tg.plot(tg2)
[Package rPraat version 1.3.2-1 Index]