View source: R/wind_detection_functions.R
wind_detection_pre_processing | R Documentation |
This function takes a vector of wave file names and returns a list of three vectors that can be provided to the wind detection software or written to files that the software can read. Details of the usable fork of the wind detection software can be found at https://github.com/dhope/WindNoiseDetection
wind_detection_pre_processing(
wav_files,
site_pattern,
output_directory,
write_to_file = FALSE,
chunk_size = NULL
)
wav_files |
Vector of path to wav files |
site_pattern |
Pattern to extract sites from file names |
output_directory |
Directory path to export files to |
write_to_file |
Logical Should the function write files to output_directory |
chunk_size |
Numeric If not NULL, sets number of files to include in each chunk |
List including filePath, filenames, and sites suitable for wind software.
wind_files <-
wind_detection_pre_processing(
wav_files = example_clean$path,
output_directory = td,
site_pattern = create_pattern_site_id(
p_digits = c(2, 3), sep = "_",
s_digits = c(1, 2)
),
write_to_file = FALSE, chunk_size = NULL
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.