Learn R Programming

phonfieldwork (version 0.0.13)

tier_to_df: TextGrid's tier to dataframe

Description

Convert selected tier from a Praat TextGrid to a dataframe.

Usage

tier_to_df(file_name, tier = 1)

Value

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

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'.

Author

George Moroz <agricolamz@gmail.com>

Examples

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

Run the code above in your browser using DataLab