textgRid-as.data.frame: Coerce to a data.frame.

Description Usage Arguments Details Value

Description

Coerce an IntervalTier, PointTier, or TextGrid object to a data.frame.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'IntervalTier'
as.data.frame(x, row.names = NULL, optional = FALSE,
  ..., stringsAsFactors = FALSE)

## S3 method for class 'PointTier'
as.data.frame(x, row.names = NULL, optional = FALSE,
  ..., stringsAsFactors = FALSE)

## S3 method for class 'TextGrid'
as.data.frame(x, row.names = NULL, optional = FALSE, ...,
  stringsAsFactors = FALSE)

Arguments

x

An IntervalTier, PointTier, or TextGrid object.

row.names

NULL or a character vector giving the row names for the returned data.frame. If NULL (the default), the rows of the returned data.frame are named numerically beginning at 1.

optional

A logical, default is FALSE. If TRUE, setting row names and converting column names is optional.

...

Additional optional arguments. (Only here for consistency with the generic.)

stringsAsFactors

A logical, default is FALSE.

Details

IntervalTiers and PointTiers are coerced by passing them to findIntervals() and findPoints(), respectively. Only intervals and points that have contentful, non-empty labels are returned after coercion.

Value

A data.frame object whose rows represent the contentful intervals or points within object, and whose columns are: TierNumber, TierName, TierType, Index, StartTime, EndTime, Label.


patrickreidy/textgRid documentation built on May 6, 2019, 8:35 p.m.