myrwaR

R Package for the Mystic River Watershed Association

View project on GitHub

Welcome

This package contains tools and functions for analyzing, exporting, and reviewing the MyRWA water quality database.

Installation

The myrwaR package can only be installed from Github (it is not available on CRAN). It can be installed using the devtools package, which you may need to install first.

install.packages('devtools')
library(devtools)
install_github('walkerjeffd/myrwaR')

Vignettes

The myrwaR package includes a series of vignettes that explain how to use the various functions contained in the package.

  • WQ Database Functions: overview of functions for connecting to the MyRWA WQ database, extracting various datasets, and performing QAQC checks.
  • Functions for Loading and Analyzing Precipitation Data: overview of functions for loading precipitation data from Excel files or USGS NWIS, computing antecedent precipitation, and analyzing discrete storm events.
  • STORET Functions: functions for retrieving the MyRWA water quality data from STORET, and comparing to the current database.
  • WQX Export Functions: functions for exporting the MyRWA water quality data to WQX format for importing to STORET.

Note that you will not be able to build the vignettes directly because they require paths to local files that are external to the package (e.g. the Access WQ database). However, you can view the vignettes in this site, and simply copy and paste the code into RStudio. Be sure to change the paths to files such as the database to match your local filesystem (the paths are usually defined at the top of each vignette).

Author

Jeffrey D Walker, PhD (@walkerjeffd, walkerenvres.com)