visits_qaqc: Check 'Visits' table for errors

Description Usage Arguments Value Author(s) Examples

View source: R/qaqc_functions.R

Description

visits_qaqc looks for data entry errors in the 'Visits' table in the UWIN database.

Usage

1
visits_qaqc(uwin_data = NULL, file_conn = NULL)

Arguments

uwin_data

The list object returned from collect_tables. If the Visits table is not within this object an error will occur.

file_conn

The file path in which to write errors to supplied as a character string. This argument is managed automatically if do_qaqc is called instead. If left NULL then visits_qaqc will create a error_reports sub-folder in the working directory and populate it with an error report titled error_report_DATE.txt where DATE is the current date called via Sys.Date

Value

Returns uwin_data, will stop if data is not correctly entered and stop_on_error is TRUE.

visits_qaqc also creates a new column in the visits table titled SurveyID which concatenates the LocationID, SeasonID, and year from VisitDate, seperated by a dash (e.g., "449-4-17").

Author(s)

Mason Fidino

Examples

1
uwin_list <- visits_qaqc(uwin_data = uwin_test)

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