Annotates textgrids. It is possible to define step in the argument "each", so each second element of the tier will be annotated.
annotate_textgrid( annotation, textgrid, tier = 1, each = 1, backup = TRUE, write = TRUE )
vector of stimuli
character with a filename or path to the TextGrid
value that could be either ordinal number of the tier either name of the tier
non-negative integer. Each element of x is repeated each times
logical. If TRUE (by default) it creates a backup tier.
logical. If TRUE (by dafault) it overwrites an existing tier.
a string that contain TextGrid. If argument write is TRUE, then no output.
TRUE
# NOT RUN { annotate_textgrid( annotation = c("", "t", "e", "s", "t"), textgrid = system.file("extdata", "test.TextGrid", package = "phonfieldwork" ), tier = 2, write = FALSE ) # }
Run the code above in your browser using DataLab