Learn R Programming

AcousticNDLCodeR (version 1.0.2)

readTextGridRobust: Reads a TextGrid made with praat and returns a list with a vector of all tier names and a data.frame for each tier

Description

Reads a TextGrid made with praat and returns a list with a vector of all tier names and a data.frame for each tier

Usage

readTextGridRobust(File, Encoding)

Arguments

File

Name (with full path, if not in wd) of the TextGrid

Encoding

Encoding of the TextGrid. Typically encodings are "ACSII","UTF-8" or "UTF-16"

Value

A list containing a vectors with the names and data.frames for each tier in the TextGrid.

Examples

Run this code
# NOT RUN {
       
# }
# NOT RUN {
       # Assume that NameOfTextGrid is encoded in "UTF-8"
       Data=readTextGridRobust("NameOfTextGrid","UTF-8")

       
# }

Run the code above in your browser using DataLab