Returns the duration (in second) of a time wave
duration(wave, f, channel=1)
A numeric vector of length 1 returning the duration in second.
an R object.
sampling frequency of wave
(in Hz). Does not need to be specified if embedded in wave
.
channel of the R object, by default left channel (1).
Jerome Sueur