batchDetection {monitoR} | R Documentation |
Batch Template Detection
Description
These functions are used to carry out template dection for multiple template and survey files in a single call.
These functions make it easy to analyze multiple survey files in a single call. They call corMatch
or binMatch
, followed by findPeaks
and getDetections
to do the work.
Usage
batchCorMatch(dir.template, dir.survey = ".", ext.template = "ct", ext.survey = "wav",
templates, parallel = FALSE, show.prog = FALSE, cor.method = "pearson", warn = TRUE,
time.source = "filename", fd.rat = 1, ...)
batchBinMatch(dir.template, dir.survey = ".", ext.template = "bt", ext.survey = "wav",
templates, parallel = FALSE, show.prog = FALSE, warn = TRUE,
time.source = "filename", fd.rat = 1, ...)
Arguments
dir.template |
A file path to a directory that contains template files to be used.
Only used if |
dir.survey |
A file path to a directory that contains survey files to be analyzed. |
ext.template |
Extension of the template files. |
ext.survey |
Extension of the survey files. |
templates |
A template list–a |
parallel |
If |
show.prog |
If |
cor.method |
For |
warn |
Set to |
time.source |
The source of date and time information.
|
fd.rat |
A ratio of frame width (twice minimum peak separation) to template duration.
Used by |
... |
Additional arguments to the |
Details
These functions are simple but do not provide flexibility in how results are handled.
Manually writing a for
loop is a more flexible solution.
Value
A data frame of detections, as returned by getDetections
.
Author(s)
Sasha D. Hafner
See Also
corMatch
,
binMatch
,
findPeaks
,
getDetections
Examples
## Not run:
# Assume multiple survey files are in the subdirectory "Surveys" and templates
# are in subdirectory "Templates"
detects <- batchCorMatch("Templates", "Surveys")
# Or, to use an existing template list instead
detects <- batchCorMatch(templates = ctemps, dir.survey = "Surveys")
## End(Not run)