do_qaqc: Quality assurance / quality control for UWIN database

Description Usage Arguments Value Author(s) Examples

View source: R/qaqc_functions.R

Description

do_qaqc is a utility function that calls all other QA/QC functions available in uwinr for the tables that are loaded via collect_tables. Currently, the tables where QA/QC functions exist include: Visits (visits_qaqc) and Photos (photos_qaqc).

Usage

1
do_qaqc(uwin_data = NULL, show_error_file = TRUE)

Arguments

uwin_data

The list object returned from collect_tables.

show_error_file

If TRUE, then an error report will be opened up if there are errors in the UWIN database. This error report will direct you to a number of csv files within an errors sub-folder within your working directory.

Value

Returns the list object from collect_tables. Furthermore, this function will create a sub-folder in your working directory titlederror_reports if it does not exist and populate thatsub-folder with an error report titled error_report_DATE.txt where DATE is the current date called via Sys.Date. This error report will describe potential issues with the data in your UWIN database and point you out to a number of csv files that further describe these errors.

Author(s)

Mason Fidino

Examples

1
2
# do qaqc, assuming you had loaded data with collect_tables
uwin_list <- do_qaqc(uwin_test)

mfidino/uwinr documentation built on Oct. 9, 2019, 10:02 p.m.