create_subannotation: Create boundaries in a texgrid tier

Description Usage Arguments Value Author(s) Examples

View source: R/create_subannotation.R

Description

Create boundaries in a texgrid tier

Usage

1
2
3
4
5
6
7
8
9
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.

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

1
2
3
4
5
create_subannotation(system.file("extdata", "test.TextGrid",
  package = "phonfieldwork"
),
tier = 1, overwrite = FALSE
)

phonfieldwork documentation built on March 3, 2021, 1:12 a.m.