check_sedMass: check_sedMass. Check and flag sediment mass (P91157) less...

Description Usage Arguments Details Value Examples

View source: R/check_sedMass.R

Description

Function to check and flag sediment mass (P91157) less than 2mg

Usage

1
check_sedMass(x, returnAll = FALSE, reviewSummary = FALSE)

Arguments

x

A dataframe output from get_localNWIS

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

Checks parameter code 91157 (Suspended sediment, sediment mass recovered from whole water sample, dry weight, grams) and flags samples < 2mg (< 0.002 g) with flag and result value.

Rejected samples are not included.

Value

A dataframe containing all samples with applicable flags

Examples

1
2
3
data("exampleData",package="sedReview")
x <- exampleData
check_sedMassOut <- check_sedMass(x)

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