tg.cut0: tg.cut0

Description Usage Arguments Value See Also Examples

View source: R/tg.R

Description

Cut the specified time frame from the TextGrid and shift time so that the new tmin = 0

Usage

1
tg.cut0(tg, tStart = -Inf, tEnd = Inf)

Arguments

tg

TextGrid object

tStart

beginning time of time frame to be cut (default -Inf = cut from the tmin of the TextGrid)

tEnd

final time of time frame to be cut (default Inf = cut to the tmax of the TextGrid)

Value

TextGrid object

See Also

tg.cut, pt.cut, pt.cut0, tg.read, tg.plot, tg.write, tg.insertInterval

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
tg <- tg.sample()
tg2 <-   tg.cut(tg,  tStart = 3)
tg2_0 <- tg.cut0(tg, tStart = 3)
tg3 <-   tg.cut(tg,  tStart = 2, tEnd = 3)
tg3_0 <- tg.cut0(tg, tStart = 2, tEnd = 3)
tg4 <-   tg.cut(tg,  tEnd = 1)
tg4_0 <- tg.cut0(tg, tEnd = 1)
tg5 <-   tg.cut(tg,  tStart = -1, tEnd = 5)
tg5_0 <- tg.cut0(tg, tStart = -1, tEnd = 5)
## Not run: 
tg.plot(tg)
tg.plot(tg2)
tg.plot(tg2_0)
tg.plot(tg3)
tg.plot(tg3_0)
tg.plot(tg4)
tg.plot(tg4_0)
tg.plot(tg5)
tg.plot(tg5_0)

## End(Not run)

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