AWQMS_Data: AWQMS_Data

View source: R/AWQMS_Data.R

AWQMS_DataR Documentation

AWQMS_Data

Description

This function will retrieve data from OregonDEQ AWQMS

Usage

AWQMS_Data(
  startdate = "1949-09-15",
  enddate = NULL,
  MLocID = NULL,
  AU_ID = NULL,
  project = NULL,
  Char_Name = NULL,
  CASNumber = NULL,
  Statistical_Base = NULL,
  SampleMedia = NULL,
  SampleSubmedia = NULL,
  OrganizationID = NULL,
  HUC8 = NULL,
  HUC8_Name = NULL,
  HUC10 = NULL,
  HUC12 = NULL,
  HUC12_Name = NULL,
  EcoRegion3 = NULL,
  crit_codes = FALSE,
  filterQC = TRUE,
  return_query = FALSE
)

Arguments

startdate

Optional parameter setting the startdate of the data being fetched. Format 'yyyy-mm-dd'

enddate

Optional parameter setting the enddate of the data being fetched. Format 'yyyy-mm-dd'

MLocID

Optional vector of stations to be fetched

AU_ID

Optional vector of Assessment Units to be fetched

project

Optional vector of projects to be fetched

Char_Name

Optional vector of characteristics to be fetched

CASNumber

Optional vector of CAS numbers to be fetched

Statistical_Base

Optional vector of Result Stattistical Bases to be fetched ex. Maximum

SampleMedia

Optional vector of sample media to be fetched

SampleSubmedia

Optional vector of sample submedia to be fetched

OrganizationID

optional vector of Organizations to be fetched

HUC8

Optional vector of HUC8s to be fetched

HUC8_Name

Optional vector of HUC8 names to be fetched

HUC10

Optional vector of HUC10s to be fetched

HUC12

Optional vector of HUC12s to be fetched

HUC12_Name

Optional vector of HUC12 names to be fetched

crit_codes

If true, include standard codes used in determining criteria

filterQC

If true, do not return MLocID 10000-ORDEQ or sample replicates

return_query

If true, return the query language that would have been sent to AWQMS. If TRUE, nothing is sent to AWQMS. This is useful for troubleshooting.

Value

Dataframe of data from AWQMS

Examples

AWQMS_Data(startdate = '2000-1-1', enddate = '2000-12-31', MLocID = c('10591-ORDEQ', '29542-ORDEQ'),
project = 'Total Maximum Daily Load Sampling', filterQC = FALSE, crit_codes = FALSE)

TravisPritchardODEQ/AWQMSdata documentation built on Nov. 10, 2024, 8:26 a.m.