collapseClips: Summarize/Archive Song Events

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/collapseClips.R

Description

Read in a Wave object, extract the song events, and bind them into a single Wave object for archiving or comparison viewing.

Usage

1
collapseClips(rec, start.times, end.times, return.times = FALSE)

Arguments

rec

Object of class Wave or file path to wave file.

start.times

Vector of event start times, in seconds.

end.times

Vector of event end times, in seconds.

return.times

Logical. TRUE will return

Details

A stripped-down version of bindEvents, perhaps more readily applied to the output of findPeaks.

Value

If return.times = FALSE, an object of class Wave. If return.times = TRUE, a list:

times

A data frame with the start and end times of events in the wave object

wave

An object of class Wave

Author(s)

Sasha D. Hafner

See Also

viewSpec, bindEvents, bind.

Examples

1
2
3
4
5
6
data(survey_anno)

data(survey)

events <- collapseClips(rec = survey, start.times = survey_anno[, "start.time"], 
                        end.times = survey_anno[, "end.time"], return.times = FALSE)

monitoR documentation built on May 1, 2019, 6:28 p.m.