read_textgrid: Read a textgrid file into a tibble

Description Usage Arguments Value Examples

View source: R/readtextgrid.R

Description

Read a textgrid file into a tibble

Usage

1
2
3

Arguments

path

a path to a dataframe

file

an optional value to use for the file column. For read_textgrid(), the default is the base filename of the input file. For read_textgrid_lines(), the default is NA.

lines

alternatively, the lines of a textgrid file

Value

a tibble with one row per textgrid annotation

Examples

1
2
tg <- system.file("Mary_John_bell.TextGrid", package = "readtextgrid")
read_textgrid(tg)

Example output

# A tibble: 3 x 10
  file  tier_num tier_name tier_type tier_xmin tier_xmax  xmin  xmax text 
  <chr>    <dbl> <chr>     <chr>         <dbl>     <dbl> <dbl> <dbl> <chr>
1 Mary1 Mary      Interval0         1     0     1 ""   
2 Mary2 John      Interval0         1     0     1 ""   
3 Mary3 bell      TextTier          0         1    NA    NA  <NA>
# … with 1 more variable: annotation_num <int>

readtextgrid documentation built on Feb. 17, 2020, 5:09 p.m.