Description Usage Arguments Value See Also Examples
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.
1 | tg.duplicateTier(tg, originalInd, newInd = Inf, newTierName = "")
|
tg |
TextGrid object |
originalInd |
tier index or "name" |
newInd |
new tier index ( |
newTierName |
[optional but recommended] name of the new tier |
TextGrid object
tg.duplicateTierMergeSegments
, tg.setTierName
, tg.removeTier
, tg.boundaryMagnet
1 2 3 | tg <- tg.sample()
tg2 <- tg.duplicateTier(tg, "word", 1, "NEW")
tg.plot(tg2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.