pestCheck: Function to flag pesticide samples

Description Usage Arguments Details Value Examples

View source: R/pestCheck.R

Description

Function to flag pesticide samples

Usage

1
pestCheck(qw.data, returnAll = FALSE)

Arguments

qw.data

A qw.data list generated from readNWISodbc

returnAll

logical, return dataframe containing all results or only return flagged samples. Default is FALSE

Details

Compares each sample with DQI code of "I","S", or "P" to ranges of all prior approved data ("R","O","A"), and flags samples that are suspisciously high or low i nnumber of hits for pesticide schedule 2437. Definitions of checks can be found at https://internal.cida.usgs.gov/NAWQA/data_checks/docs/files/check30-sql.html

Value

A dataframe containing all samples with applicable flags

Examples

1
2
3
data("exampleData",package="WQReview")
pestCheckOut <- pestCheck(qw.data=qw.data,
             returnAll = FALSE)

USGS-R/WQ-Review documentation built on Nov. 12, 2019, 9:51 a.m.