tier_to_df: TextGrid's tier to dataframe

View source: R/tier_to_df.R

tier_to_dfR Documentation

TextGrid's tier to dataframe

Description

Convert selected tier from a Praat TextGrid to a dataframe.

Usage

tier_to_df(file_name, tier = 1)

Arguments

file_name

string with a filename or path to the TextGrid

tier

value that could be either ordinal number of the tier either name of the tier. By default is '1'.

Value

a dataframe with columns: id, time_start, time_end, content, , tier_name

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

tier_to_df(system.file("extdata", "test.TextGrid",
  package = "phonfieldwork"
))
tier_to_df(
  system.file("extdata", "test.TextGrid",
    package = "phonfieldwork"
  ),
  "intervals"
)

phonfieldwork documentation built on June 22, 2024, 12:19 p.m.