find_outliers: find_outliers. Flag sediment outliers based on threshold...

Description Usage Arguments Details Value Examples

View source: R/find_outliers.R

Description

Function to flag sediment outliers based on threshold criteria.

Flags for suspended sediment concentration (P80154), suspended sediment load (P80155), bed and suspended sediment loss on ignition (P00496/00535), and Sand/Silt break (P70331 Suspended sediment, sieve diamter, percent smaller than 0.0625mm)

Usage

1
2
3
4
5
6
7
find_outliers(
  x,
  site_no = NULL,
  lowThreshold = 0.1,
  highThreshold = 0.9,
  returnAll = FALSE
)

Arguments

x

A dataframe output from get_localNWIS

site_no

Character of a site number in the x dataframe from get_localNWIS if x contains more than one site. Default is NULL.

lowThreshold

numeric value between 0 and 1 indicating the quantile threshold for a low value outlier.

highThreshold

numeric value between 0 and 1 indicating the quantile threshold for a high value outlier.

returnAll

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

Details

Rejected samples are not included.

Value

A dataframe containing all samples with applicable flags

Examples

1
2
3
data("exampleData",package="sedReview")
x <- exampleData
outliers_05586300 <- find_outliers(x, site_no = "05586300")

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