annotate_textgrid {phonfieldwork} | R Documentation |
Annotate textgrid
Description
Annotates textgrids. It is possible to define step in the argument "each", so each second element of the tier will be annotated.
Usage
annotate_textgrid(
annotation,
textgrid,
tier = 1,
each = 1,
backup = TRUE,
write = TRUE
)
Arguments
annotation |
vector of stimuli |
textgrid |
character with a filename or path to the TextGrid |
tier |
value that could be either ordinal number of the tier either name of the tier |
each |
non-negative integer. Each element of x is repeated each times |
backup |
logical. If TRUE (by default) it creates a backup tier. |
write |
logical. If TRUE (by dafault) it overwrites an existing tier. |
Value
a string that contain TextGrid. If argument write is TRUE
,
then no output.
Author(s)
George Moroz <agricolamz@gmail.com>
Examples
annotate_textgrid(
annotation = c("", "t", "e", "s", "t"),
textgrid = system.file("extdata",
"test.TextGrid",
package = "phonfieldwork"
),
tier = 2, write = FALSE
)
[Package phonfieldwork version 0.0.17 Index]