We all want assessments that are:
Philosophy is for managers…
Staff tend to focus on the technical challenges.
>
1000 unique criteria
Incorporate multiple data sources:
Interpretation and analysis issues:
1. Field & lab methods
2. Parameters
3. Site types
Previous approaches:
Motivation
Rapid, repeatable, and adaptable assessment process
Objectives
1. Flexible tool inputs
2. Re-usable, generalizable, standardized components
3. Transparent & documented process
4. Readily reviewable
R is an open source statistical program and coding language.
r-project.org
Robust user community of coders & problem solvers.
Fully customizable.
Everything that exists is an object.
Everything that happens is a function call.
— John Chambers
Functions & packages
Function
A block of code that performs a particular task or set of tasks. A function has a name, arguments, a body (code), and a return value.
Argument
Change-able inputs to a function.
Package
A portable collection of R functions.
Help files
?readWQP
Markdown & bookdown
Collaborative code writing, versioning, & sharing platform.
Individuals, organizations, teams, and repositories.
DWQ GitHub organization
A location for DWQ staff to store, collaborate, and share repositories.
github.com/utah-dwq
DWQ R packages
DWQ has two packages in current development. These can be viewed and installed via GitHub.
Installing from GitHub
Water quality data portal
waterqualitydata.us/portal
ECHO
Web service capabilities
library(wqTools)
two_site_nr=readWQP(type="narrowresult",
siteid=c("UTAHDWQ_WQX-4900440","UTAHDWQ_WQX-4900470"),
start_date="01/01/2016", end_date="12/31/2018")
utah_lake_nr=readWQP(type="narrowresult",
auid=c('UT-L-16020201-004_01', 'UT-L-16020201-004_02'),
start_date="01/01/2016", end_date="12/31/2018",
siteType=c("Lake, Reservoir, Impoundment","Stream"),
print=F)
Shiny is an R package for building interactive web applications to visualize and analyze data and communicate analytical results. These can be run locally, hosted on the web, and embedded into documents, presentations, and web pages.
library(wqTools)
downloadWQP(outfile_path='C:/Your/Folder/Path',
start_date="01/01/2018", end_date="12/31/2018",
retrieve=c("narrowresult","sites","detquantlim","activity"))
Count exceedances
Assess counts
Interactive tools for visualizing sites, data, and assessment results and providing reviewer feedback.