This function selects and delete a section of data describing a time wave.
Original section and section after deletion can be plotted as oscillograms for comparison.
Usage
deletew(wave, f, from = NULL, to = NULL, choose = FALSE, plot = FALSE,
marks = TRUE, output = "matrix", ...)
Arguments
Value
If plot is FALSE, a new wave is returned. The class
of the returned object is set with the argument output.
Details
If plot is TRUE returns a two-frame plot with both
original and resulting sections.
# deletion a 0.4 s section in a bird songdata(tico)
a<-deletew(tico,f=22050,from=0.5,to=0.9)
oscillo(a,22050)
# a direct way to see what has been cutdeletew(tico,f=22050,from=0.5,to=0.9,plot=TRUE)