Learn R Programming

seewave (version 2.1.3)

duration: Duration of a time wave

Description

Returns the duration (in second) of a time wave

Usage

duration(wave, f)

Arguments

wave

an R object.

f

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

Value

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

Examples

Run this code
# NOT RUN {
data(tico)
duration(tico)
# }

Run the code above in your browser using DataLab