Learn R Programming

rPraat (version 1.3.2-1)

pt.getPointIndexNearestTime: pt.getPointIndexNearestTime

Description

Returns index of point which is nearest the given time (from both sides).

Usage

pt.getPointIndexNearestTime(pt, time)

Arguments

pt

PitchTier object

time

time which is going to be found in points

Value

integer

See Also

pt.getPointIndexLowerThanTime, pt.getPointIndexHigherThanTime

Examples

Run this code
# NOT RUN {
pt <- pt.sample()
pt.getPointIndexNearestTime(pt, 0.5)
# }

Run the code above in your browser using DataLab