phonfieldwork (version 0.0.13)

textgrid_to_df: TextGrid to dataframe

Description

Convert Praat TextGrid to a dataframe.

Usage

textgrid_to_df(file_name)

Value

a dataframe with columns: id, time_start, time_end (if it is an interval tier -- the same as the start value), content, tier, tier_name and source

Arguments

file_name

string with a filename or path to the TextGrid

Author

George Moroz <agricolamz@gmail.com>

Examples

Run this code
textgrid_to_df(system.file("extdata", "test.TextGrid",
  package = "phonfieldwork"
))

# this is and example of reading a short .TextGrid format
textgrid_to_df(system.file("extdata", "test_short.TextGrid",
  package = "phonfieldwork"
))

Run the code above in your browser using DataLab