filter_parameter: Filter SWIMS by parameter

Description Usage Arguments Value

View source: R/filter_parameter.R

Description

Subsets SWIMS dataset for a CSLS lake to only measurements for a parameter of interest.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
filter_parameter(
  water_chem,
  parameter,
  plotting_name = "",
  numeric = TRUE,
  no_blanks = TRUE,
  no_dups = TRUE,
  no_age = FALSE,
  no_bad_well = FALSE,
  no_bad_sample = TRUE,
  no_lod = FALSE,
  no_comment = FALSE,
  note_lake_bottom = FALSE
)

Arguments

water_chem

data frame with water_chem information for sites of interest

parameter

- parameter to subset by, must exactly match DNR description (e.g., "ALUMINUM,TOTAL RECOVERABLE"). Can be a vector of multiple descriptors.

plotting_name

- name of parameter to use for plotting, e.g., "Total Recoverable Alumninum", no units. Defaults to "".

numeric

logical defaults to TRUE to indicate results should be numeric

no_blanks

logical defaults to TRUE to exclude blank samples

no_dups

logical defaults to TRUE to exclude duplicate samples

no_age

logical defaults to FALSE to include samples that were analyzed past the holding date.

no_bad_well

logical defaults to FALSE to include samples from wells known to behave weirdly.

no_bad_sample

logical defaults to TRUE to exclude bad measurements from QC.

no_lod

logical defaults to FALSE to include samples with results below the limit of detection.

no_comment

logical defaults to FALSE to include samples with other comments from the lab

note_lake_bottom

logical defaults to FALSE to leave all lake samples as "lake". If true, notes samples > 5m deep as "lake_bottom".

Value

df, same data frame, with only the results for the parameter of interest. Also includes the given plotting name ("name").


WDNR-Water-Use/CSLSchem documentation built on July 3, 2020, 10:51 a.m.