check_samplePurp: check_samplePurp. flag uncommon sample purpose

Description Usage Arguments Details Value Examples

View source: R/check_samplePurp.R

Description

Function to flag uncommon sample purpose

Usage

1
check_samplePurp(x, returnAll = FALSE)

Arguments

x

A dataframe output from get_localNWIS

returnAll

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

Details

Function determines most common sample purpose for all retrieved records and flags all sample purposes other than the most common.

There are of course valid reasons to have different sample purposes, this is just a check.

Rejected samples are not included.

Value

A dataframe containing all samples with applicable flags

Examples

1
2
3
data("exampleData",package="sedReview")
x <- exampleData
samplePurpFlags <- check_samplePurp(x)

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