textgrid_to_df: TextGrid to dataframe

Description Usage Arguments Value Author(s) Examples

View source: R/textgrid_to_df.R

Description

Convert Praat TextGrid to a dataframe.

Usage

1
textgrid_to_df(file_name)

Arguments

file_name

string with a filename or path to the TextGrid

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

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

1
2
3
4
5
6
7
8
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"
))

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