phonfieldwork (version 0.0.10)

create_subannotation: Create boundaries in a texgrid tier

Description

Create boundaries in a texgrid tier

Usage

create_subannotation(
  textgrid,
  tier = 1,
  new_tier_name = "",
  n_of_annotations = 4,
  each = 1,
  omit_blank = TRUE,
  overwrite = TRUE
)

Arguments

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

new_tier_name

a name of a new created tier

n_of_annotations

number of new annotations per annotation to create

each

non-negative integer. Each new blank annotation is repeated every first, second or ... times

omit_blank

logical. If TRUE (by dafault) it doesn't create subannotation for empy annotations.

overwrite

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

Value

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

Examples

Run this code
# NOT RUN {
create_subannotation(system.file("extdata", "test.TextGrid",
  package = "phonfieldwork"
),
tier = 1, overwrite = FALSE
)
# }

Run the code above in your browser using DataLab