high_frequency_extractor: Copy or Move a Random Subset of High Frequency Files to a New...

high_frequency_extractorR Documentation

Copy or Move a Random Subset of High Frequency Files to a New Sub Directory for Manual Vetting

Description

high_frequency_extractor moves or copies a proportion of high frequency files from a directory. To do so reqruies a text file output to be generated for the directory in SonoBat.

Usage

high_frequency_extractor(
  sonobat_output,
  directory,
  percentage = 0.1,
  move_files = TRUE
)

Arguments

sonobat_output

Character, a full path to a text file output of the directory created from SonoBat > SonoVet > Export > Use Current Layout

directory

Character, a full path to the folder containg the files you wish to subset.

percentage

Number. What proportion of files do you wish to extract. Defaults to 0.1 - 10 percent.

move_files

Logical vector, defaults to TRUE. If TRUE the function will move selected files into a new directory. If FALSE the function will copy files into a new directory.

Value

A folder within the file folder filled with a percentage of high frequency files moved or copied.

Note

this function will only work for files within a single directory. It will not work correctly where files are arranged in sub-directories!

See Also

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

Examples

## Not run: 
high_frequency_extractor("C:/Folder/Files_Folder/sonobat_output.txt", "C:/Folder/Files_Folder", percentage = 0.1, move_files = TRUE)

## End(Not run)

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