duration: Duration of a time wave

View source: R/seewave.r

durationR Documentation

Duration of a time wave

Description

Returns the duration (in second) of a time wave

Usage

duration(wave, f, channel=1)

Arguments

wave

an R object.

f

sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.

channel

channel of the R object, by default left channel (1).

Value

A numeric vector of length 1 returning the duration in second.

Author(s)

Jerome Sueur

Examples

data(tico)
duration(tico)

seewave documentation built on Oct. 19, 2023, 5:07 p.m.

Related to duration in seewave...