Learn R Programming

AcousticNDLCodeR (version 1.0.2)

readTextGridFast: 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

readTextGridFast(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.

Details

This method has sometimes problems with certain sequences like "\n" in the annotation file. If the method fails, try readTextGridRobust()

Examples

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

       
# }

Run the code above in your browser using DataLab