powered by
Read in a Wave object, extract the song events, and bind them into a single Wave object for archiving or comparison viewing.
Wave
collapseClips(rec, start.times, end.times, return.times = FALSE)
If return.times = FALSE, an object of class Wave. If return.times = TRUE, a list:
return.times = FALSE
return.times = TRUE
A data frame with the start and end times of events in the wave object
An object of class Wave
Object of class Wave or file path to wave file.
Vector of event start times, in seconds.
Vector of event end times, in seconds.
Logical. TRUE will return
TRUE
Sasha D. Hafner
A stripped-down version of bindEvents, perhaps more readily applied to the output of findPeaks.
bindEvents
findPeaks
viewSpec, bindEvents, bind.
viewSpec
bind
data(survey_anno) data(survey) events <- collapseClips(rec = survey, start.times = survey_anno[, "start.time"], end.times = survey_anno[, "end.time"], return.times = FALSE)
Run the code above in your browser using DataLab