View source: R/loadMultiscapeData.R
loadMultiscapeData | R Documentation |
Loads soundscape data just like loadSoundscapeData, but is designed to load multiple soundscape datasets from multiple folders. This is identical to loading each folder of data individually with the same bin and label parameters.
loadMultiscapeData(
x,
timeBin = NULL,
binFunction = "median",
binCount = FALSE,
octave = c("original", "tol", "ol"),
label = NULL,
keepQuals = c(1),
keepEffort = TRUE,
dropNonHmd = TRUE,
tz = "UTC",
extension = c("nc", "csv")
)
x |
a vector of folder names to load |
timeBin |
amount of time to bin data by, format can
be "#Unit" e.g. |
binFunction |
summary function to apply to data in each time bin, default is "median" |
binCount |
logical flag to return the number of times in each time bin as column "binCount" |
octave |
one of "original", "tol", or "ol". If "original" then nothing happens, otherwise data are converted to Octave-leve ("ol") or Third-Octave-Level ("tol") measurements using createOctaveLevel |
label |
if not |
keepQuals |
quality flag values to keep. Accepts vector of
integers from (1, 2, 3, 4) corresponding to flag labels "Good",
"Not evaluated/Unknown", "Compromised/Questionable", and "Unusable/Bad".
HMD levels for points with data quality flags outside of |
keepEffort |
if |
dropNonHmd |
logical flag to drop non-standard hybrid millidecade
bands, only applies to HMD type data. Some datasets have frequency
values that are not part of the standard HMD bands (e.g. at exactly
the Nyquist rate), if |
tz |
timezone of the data being loaded, will be converted to UTC after load |
extension |
only required if both netCDF and CSV files exist in the folders to load, in which case only one type will be loaded. Must be one of "nc" or "csv" |
This function is equivalent to loading each folder of data
separately with the same time and octave-level aggregation options
applied, and is meant as a convenient wrapper for loading multiple
years or sites of data for comparison person. The expectation is that
this function will be primarily used for large scale comparisons, hence
why timeBin
is a required argument to reduce data resolution.
The only other difference is that if no labels are supplied for the folders,
then one will be generated either from the names of x
if it is a
named vector, or the name of the folder using basename. This is to
ensure that each separate folder can be identified once read in.
a dataframe
Taiki Sakai taiki.sakai@noaa.gov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.