manual_vet_extractor: Copy a Random Subset of Files to a New Directory for Manual...

View source: R/new_manual_vetting.R

manual_vet_extractorR Documentation

Copy a Random Subset of Files to a New Directory for Manual Vetting

Description

manual_vet_extractor copies a randomly selected subset of files in a project to a new folder to facilitate manual vetting. The function will only move files with an accepted automatic species assignment from SonoBat.

Usage

manual_vet_extractor(
  data_path,
  WAV_directory,
  save_directory,
  species_list,
  percentage = 0.05,
  no_manual = FALSE,
  fast_import = F
)

Arguments

data_path

Character. Path to an existing RData file for the data set you wish to manually vet.

WAV_directory

Character, the parent directory containing original WAV files.

save_directory

Character, the destination where selected files will be copied to

species_list

Character, a single species or list in the form of four character species codes used by SonoBat, e.g. "Epfu". Defaults to non Ontario SAR: c("Epfu", "Labo", "Laci", "Lano").

percentage

Number. What proportion of files do you wish to extract. Defaults to 0.05 - 5 percent.

no_manual

Logical vector, defaults to FALSE. If TRUE the function will ignore files that have already been assigned an ID.

Value

Creates folder within the file folder filled with a percentage of files of the selected copied.

See Also

Other Manual Vetting Functions: high_frequency_extractor(), manual_vet_extractor_old()

Examples

## Not run: 
manual_vet_extractor("raw_data_project", "C:/Folder/Folder/File_Folder")

## End(Not run)

vulpes-vulpes/batr documentation built on Jan. 23, 2025, 3:23 p.m.