Learn R Programming

phonfieldwork (version 0.0.13)

set_textgrid_names: Rewrite TextGrid names

Description

Rewrite TextGrid names.

Usage

set_textgrid_names(textgrid, tiers, names, write = TRUE)

Value

a string that contain TextGrid. If argument write is TRUE, then no output.

Arguments

textgrid

path to the TextGrid

tiers

integer vector with the number of tiers that should be named

names

vector of strings with new names for TextGrid tiers

write

logical. If TRUE (by dafault) it overwrites an existing tier

Author

George Moroz <agricolamz@gmail.com>

Examples

Run this code
set_textgrid_names(system.file("extdata", "test.TextGrid",
  package = "phonfieldwork"
),
tiers = 3, names = "new_name", write = FALSE
)

Run the code above in your browser using DataLab