findIntervals: Find intervals within an IntervalTier.

Description Usage Arguments Details Value See Also

Description

Find intervals according to various search criteria.

Usage

1
2
findIntervals(tier, pattern = "*", from = -Inf, to = Inf,
  at = numeric(), ...)

Arguments

tier

An IntervalTier object.

pattern

A regular expression for matching interval labels. Default is '*' so that the search finds all intervals within [from, to].

from

A numeric, the earliest time from which to search for intervals. Default is -Inf so that the search includes the start of tier.

to

A numeric, the latest time to which to search for intervals. Default is Inf so that the search includes the end of tier.

at

A numeric, an exact time at which to find intervals. Default is numeric() so that intervals are searched within [from, to].

...

optional arguments passed to grep.

Details

Default behavior of findIntervals is to search for intervals within [from, to]. If the at argument is a non-empty numeric vector, then this default behavior is overridden, and the tier is searched only at the time given by at.

Value

A data.frame whose rows correspond to the intervals found according to the search criteria, and whose columns are: $Index, $StartTime, $EndTime, $Label,

See Also

IntervalTier-class, grep


textgRid documentation built on May 1, 2019, 10:26 p.m.