tidywater: Water Quality Models for Drinking Water Treatment Processes

Provides multiple water chemistry-based models and published empirical models in one standard format. As many models have been included as possible, however, users should be aware that models have varying degrees of accuracy and applicability. To learn more, read the references provided below for the models implemented. Functions can be chained together to model a complete treatment process and are designed to work in a 'tidyverse' workflow. Models are primarily based on these sources: Benjamin, M. M. (2002, ISBN:147862308X), Crittenden, J. C., Trussell, R., Hand, D., Howe, J. K., & Tchobanoglous, G., Borchardt, J. H. (2012, ISBN:9781118131473), USEPA. (2001) <https://www.epa.gov/sites/default/files/2017-03/documents/wtp_model_v._2.0_manual_508.pdf>.

Version: 0.9.0
Depends: R (≥ 3.5)
Imports: dplyr, tidyr, forcats, knitr, ggplot2, ggrepel, magrittr, purrr, furrr, methods, rlang, deSolve
Suggests: rmarkdown, testthat (≥ 3.0.0)
Published: 2025-07-03
DOI: 10.32614/CRAN.package.tidywater
Author: Sierra Johnson [aut, cre], Libby McKenna [aut], Riley Mulhern ORCID iD [aut], Chris Corwin ORCID iD [aut], Rachel Merrifield [ctb], Mayuri Namasivayam [ctb], Phoebe Chen [ctb], Jiaming Yuan [ctb], USEPA [cph] (Copyright holder of included TELSS fragments (dissolve_pb function)), Brown and Caldwell [fnd, cph]
Maintainer: Sierra Johnson <sjohnson2 at brwncald.com>
BugReports: https://github.com/BrownandCaldwell-Public/tidywater/issues
License: Apache License (≥ 2) | MIT + file LICENSE
URL: https://github.com/BrownandCaldwell-Public/tidywater
NeedsCompilation: no
Materials: README NEWS
CRAN checks: tidywater results

Documentation:

Reference manual: tidywater.pdf
Vignettes: help_functions_blend_waters (source, R code)
help_functions_chemdose_ph (source, R code)
intro (source, R code)
Getting started with tidywater (source, R code)

Downloads:

Package source: tidywater_0.9.0.tar.gz
Windows binaries: r-devel: tidywater_0.8.2.zip, r-release: tidywater_0.9.0.zip, r-oldrel: tidywater_0.9.0.zip
macOS binaries: r-release (arm64): tidywater_0.8.2.tgz, r-oldrel (arm64): tidywater_0.8.2.tgz, r-release (x86_64): tidywater_0.9.0.tgz, r-oldrel (x86_64): tidywater_0.9.0.tgz
Old sources: tidywater archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=tidywater to link to this page.