getTierByName: Select TextGrid Tier by its name

Description Usage Arguments Examples

Description

This function takes a TextGrid and a name (character string), and returns the specified tier from that TextGrid

Usage

1
getTierByName(tg, tier_name)

Arguments

tg

TextGrid data, returned from readTextGrid() function

tier_name

character string. The name of the tier to retrive from TextGrid tg

Examples

1
2
3
4
5
6
7
# Get word tier from data in mytg.TextGrid
tg_data <- readTextGrid("mytg.TextGrid")
getTierByName(tg_data, "word")

# You may also chain with %>% from dplyr
readTextGrid("mytg.TextGrid") %>%
   getTierByName("word")

fauxneticien/phonpack documentation built on May 16, 2019, 10:56 a.m.