Learn R Programming

PAMmisc (version 1.12.4)

soundtrapQAQC: 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
)

processSoundtrapLogs(dir, voltSelect = c("internal", "external"))

Value

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

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

Author

Taiki Sakai taiki.sakai@noaa.gov

Examples

Run this code

if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab