check_Q: check_Q. Searches for samples that were collected for...

Description Usage Arguments Value Examples

View source: R/check_Q.R

Description

Searches for samples that were collected for sediment data but are missing discharge measurements. Additional option flags Instantaneous Discharge (P00061) in NWIS that are >10% different from Approved Unit Value discharge.

Usage

1
check_Q(x, includeUV = FALSE, returnAll = FALSE, reviewSummary = FALSE)

Arguments

x

A dataframe output from get_localNWIS

includeUV

Logical. If x was returned from get_UVflow. Run optional flagging for records with P00061 >10% different from Approved UV flow. Default is FALSE.

returnAll

Logical. Return dataframe containing all samples if TRUE or only return samples missing discharge if FALSE. 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.

Value

A data.frame of samples, what sediment data are available, and then a flag for missing discharge along with what discharge parameter are present

Examples

1
2
3
data("exampleData",package="sedReview")
x <- exampleData
checkQOut <- check_Q(x,includeUV = FALSE, returnAll = FALSE)

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