check_qaqcDB: check_qaqcDB. Check if SSC, bedload, or bedload mass are...

Description Usage Arguments Details Value See Also Examples

View source: R/check_qaqcDB.R

Description

Function to check if SSC, bedload, or bedload mass are coded as WSQ and in the QA/QC database

Usage

1
check_qaqcDB(x, qa.db = "02", returnAll = FALSE, reviewSummary = FALSE)

Arguments

x

A dataframe output from get_localNWIS

qa.db

A character string containing the database number of QA samples

returnAll

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

reviewSummary

logical, for center-level review, if TRUE a summary count of flags by site and water year is returned instead of individual flagged samples.

Details

Function finds and flags SSC (P80154), bedload (P80225), and bedload mass (P91145) results that are coded as medium_cd "WSQ" and stored in the user defined QA/QC database (default is qa.db = "02") downloaded with get_localNWIS

Value

A dataframe containing all samples with applicable flags

See Also

get_localNWIS

Examples

1
2
3
4
5
6
7
## Not run: 
#NOTE: exampleData contains no QA/QC results and will not return any flagged samples
data("exampleData",package="sedReview")
x <- exampleData
check_qaqcDBOut <- check_qaqcDB(x)

## End(Not run)

USGS-R/sedReview documentation built on Aug. 24, 2020, 9 p.m.