soundtrapQAQC: Perform QA/QC on Soundtrap Files

View source: R/soundtrapQAQC.R

soundtrapQAQCR Documentation

Perform QA/QC on Soundtrap Files

Description

Gathers data from Soundtrap XML log files to perform QA/QC on a set of recordings.

Usage

soundtrapQAQC(
  dir,
  outDir = NULL,
  xlim = NULL,
  label = NULL,
  voltSelect = c("internal", "external"),
  plot = TRUE
)

Arguments

dir

directory containing Soundtrap XML logs, wav files, and SUD files. Can either be a single directory containing folders with all files (will search recursively), or a vector of three directories containing the SUD files, wav files, and XML files (in that order - alphabetical S-W-X)

outDir

if provided, output plots and data will be written to this folder

xlim

date limit for plots

label

label to be used for plots and names of exported files

voltSelect

one of "internal" or "external" to select which battery voltage to use

plot

logical flag to create output plots

Value

list of dataframes with summary data for $xmlInfo, $sudInfo, and $wavInfo

Author(s)

Taiki Sakai taiki.sakai@noaa.gov

Examples


## Not run: 
# not run
stDir <- './Data/SoundtrapFiles/'
stData <- soundtrapQAQC(stDir, plot=TRUE)
# save data
stData <- soundtrapQAQC(stDir, outDir='./Data/SoundtrapFiles/QAQC', plot=TRUE)
# or provide separate folders of data
stDirs <- c('./Data/SoundtrapFiles/SUDFiles',
            './Data/SoundtrapFiles/WavFiles',
            './Data/SoundtrapFiles/XMLFiles')
stData <- soundtrapQAQC(stDirs, plot=TRUE)

## End(Not run)


PAMmisc documentation built on Aug. 17, 2023, 1:06 a.m.