tg.removeIntervalRightBoundary: tg.removeIntervalRightBoundary

Description Usage Arguments Value See Also Examples

View source: R/tg.R

Description

Remove right boundary of the interval of the given index in Interval tier. In fact, it concatenates two intervals into one (and their labels). It cannot be applied to the last interval because it is the end boundary of the tier. E.g., we have interval 1-2-3, we remove the right boundary of the 2nd interval, the result is two intervals 1-23. If we do not want to concatenate labels, we have to set the label to the empty string "" before this operation.

Usage

1
tg.removeIntervalRightBoundary(tg, tierInd, index)

Arguments

tg

TextGrid object

tierInd

tier index or "name"

index

index of the interval

Value

TextGrid object

See Also

tg.removeIntervalLeftBoundary, tg.removeIntervalBothBoundaries, tg.insertBoundary, tg.insertInterval

Examples

1
2
3
4
5
6
7
## Not run: 
tg <- tg.sample()
tg.plot(tg)
tg2 <- tg.removeIntervalRightBoundary(tg, "word", 3)
tg.plot(tg2)

## End(Not run)

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