MassReport: Apply 'GreenLight' function to an entire folder

View source: R/MassReport.R

MassReportR Documentation

Apply GreenLight function to an entire folder

Description

MassReport will scan a folder for .csv data files and apply the GreenLight function to each.

Usage

MassReport(folder.path = NA, area = NA, method = "both")

Arguments

folder.path

The path name to the folder containing the raw .csv files. Either folder.path or area must be specified.

area

The area code for dedicated MBM Alaska region surveys. Either folder.path or area must be specified. Acceptable values include:

  • YKD - Yukon Kuskokwim Delta, for either geese or ducks

  • ACP - Arctic Coastal Plain

  • CRD - Copper River Delta

  • WBPHS - The North American Waterfowl Breeding Population Habitat Survey

method

Specify greenlight, data, or both.

  • method=greenlight will run the standard GreenLight report for each data file

  • method=data will generate the QAQC data file (if possible) for each data file

  • method=both will run the standard GreenLight report for each data file and produce each associated QAQC data file

Details

MassReport is designed to produce QAQC reports for a large number of files based on a set of established criteria for data integrity. It can also create the files used for analysis (those with extraneous species codes removed) based on the method chosen. It was created to avoid single calls to Greenlight when changes are implemented in the QAQC process that need to be applied to all data files at once, such as including or excluding a species in the generated sharable analysis files.

Value

None

Author(s)

Charles Frost, charles_frost@fws.gov

References

https://github.com/USFWS/AKaerial

Examples

 MassReport(area="ACP", method="both")


USFWS/AKaerial documentation built on April 3, 2025, 4:06 p.m.