historicCheck: Function to flag samples if values are out of range of...

Description Usage Arguments Details Value Examples

View source: R/historicCheck.R

Description

Function to flag samples if values are out of range of historic data

Usage

1
historicCheck(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. 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")
historicCheckOut <- historicCheck(qw.data=qw.data,
             returnAll = FALSE)

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