Learn R Programming

textgRid (version 1.0.1)

findPoints: Find points within a PointTier.

Description

Find points according to various search criteria: e.g., that occur within a time range, whose labels match a pattern.

Usage

findPoints(tier, pattern = "*", from = -Inf, to = Inf, ...)

Arguments

tier
A PointTier object.
pattern
A regular expression for matching point labels. Default is '*' so that the search finds all points within [from, to].
from
A numeric, the earliest time from which to search for points. Default is -Inf so that the search includes the start of tier.
to
A numeric, the latest time to which to search for points. Default is Inf so that the search includes the end of tier.
...
optional arguments passed to grep.

Value

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

See Also

PointTier-class, grep