Learn R Programming

seewave (version 1.5.6)

repw: Repeat a time wave

Description

This function repeats a time wave

Usage

repw(wave, f, times = 2, plot = FALSE, output= "matrix", ...)

Arguments

wave
an R object.
f
sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.
times
a numeric of length 1 describing the number of times the wave has to be repeated.
plot
logical, if TRUE plots the repeated time wave.
output
character string, the class of the object to return, either "matrix", "Wave", "Sample", "audioSample" or "ts".
...
other oscillo graphical parameters.

Value

  • If plot is FALSE, a new wave is returned. The class of the returned object is set with the argument output.

See Also

oscillo, addsilw, cutw, deletew, fadew, mutew, pastew, revw, zapsilw

Examples

Run this code
data(tico)
repw(tico,f=22050,plot=TRUE)

Run the code above in your browser using DataLab