getWQ: Retrieve R-friendly water quality data from DBHYDRO

View source: R/getWQ.R

getWQR Documentation

Retrieve R-friendly water quality data from DBHYDRO

Description

Downloads and lightly processes DBHYDRO water quality data.

Usage

getWQ(stn = "S333", parameters = c("PHOSPHATE, TOTAL AS P|TURBIDITY"), 
    removeFlaggedData = TRUE, outputType = "wide")

Arguments

stn

character string. Case insensitive.

parameters

a grep-style character string identifying water quality parameters to report. Set to NA to report all available parameters. Partial matches are made (e.g., "TURB" and "TURBIDITY" will both yield turbidity data)

removeFlaggedData

Logical. Indicates whether flagged data should be removed

outputType

output type can be "full", "long", or "wide". "full" is a long dataset with all samples (possibility of multiple samples on a single day). "long" and "wide" average duplicate samples and are either long datasets (one column with parameter names and one column with parameter values) or wide datasets (one column of values for each parameter). The "long" form reports more information (units, MDL, PQL, RDL) than the "wide" form, which only reports values for each parameter.

Value

dataframe getWQ returns a dataframe of data

Examples

## Not run: 
longDat <- getWQ(stn = "s333", outputType = "long")
wideDat <- getWQ(stn = "s333", outputType = "wide")

## End(Not run)


troyhill/SFNRC documentation built on Dec. 30, 2024, 4:32 p.m.