deletew {seewave} | R Documentation |
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.
deletew(wave, f, from = FALSE, to = FALSE, plot = FALSE, marks = TRUE, ...)
wave |
data describing a time wave. |
f |
sampling frequency of wave . |
from |
start mark (in s). |
to |
end mark (in s). |
plot |
logical, if TRUE returns an oscillographic plot of original
and cut sections (by default FALSE ). |
marks |
logical, if TRUE shows the start and end mark on the plot (by default TRUE ). |
... |
other oscillo graphical parameters. |
If plot
is TRUE
returns a two-frame plot with both
original and resulting sections.
If plot
is FALSE
, deletew
returns a one-column matrix
describing the resulting wave with the same sampling frequency as original data.
Jérôme Sueur jerome.sueur@ibaic.u-psud.fr
# deletion a 0.4 s section in a bird song data(tico) a<-deletew(tico,f=22050,from=0.5,to=0.9) oscillo(a,22050) # a direct way to see what has been cut deletew(tico,f=22050,from=0.5,to=0.9,plot=TRUE)