Introduction to MassWateR

Dr. Marcus Beck,

Tampa Bay Estuary Program

9/16/22

WHAT IS MASSWATER?

An R package for working with Massachusetts surface water quality data

  • Summarize quality control checks and create reports
  • Evaluate outliers
  • Plot trends by site, date
  • Create maps
  • Format results for upload to WQX

WHAT IS MASSWATER?

A workflow to solve your data woes!

WEBSITE

Installation instructions, function help files, vignettes!

REQUIRED DATA

Templates

All data must be formatted using available templates, which you are already have! The package includes automated data checks to verify the correct format.

QC REVIEW

qcMWRreview(res = resdat, acc = accdat, frecom = frecomdat, output_dir = getwd())

view report

OUTLIER REVIEW

anlzMWRoutlier(res = resdat, param = "DO", acc = accdat, group = "month")

SEASONAL ANALYSIS

anlzMWRseason(res = resdat, param = "DO", acc = accdat, thresh = "fresh", group = "month", type = "jitterbar")

TIME-SERIES ANALYSIS

anlzMWRdate(res = resdat, param = "DO", acc = accdat, thresh = "fresh", group = "site", site = c("ABT-026", "ABT-077"))

SITE ANALYSIS

anlzMWRsite(res = resdat, param = "DO", acc = accdat, thresh = "fresh", type = "bar", confint = T)

MAP ANALYSIS

anlzMWRmap(res = resdat, param = "DO", acc = accdat, sit = sitdat, addwater = "medium", warn = F)

WQX FORMATTING

tabMWRwqx(res = resdat, acc = accdat, sit = sitdat, wqx = wqxdat, output_dir = getwd())

view output