textgRid-length: Length of an IntervalTier or PointTier

Description Usage Arguments Details Value

Description

Get the number of intervals on an IntervalTier or the number of points on a PointTier.

Usage

1
2
3
4
5
## S3 method for class 'IntervalTier'
length(x)

## S3 method for class 'PointTier'
length(x)

Arguments

x

An IntervalTier or PointTier object.

Details

length.IntervalTier() checks that the vectors stored in the startTimes, endTimes, and labels slots of the IntervalTier object all have the same length. If so, the length of the labels-vector is returned; otherwise, NULL is returned.

length.PointTier() checks that the vectors stored in the times and labels slots of the PointTier object both have the same length. If so, the length of the labels-vector is returned; otherwise, NULL is returned.

Value

A numeric. The number of intervals or points on x.


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