tidywater0.6.2 package

Water Quality Models for Drinking Water Treatment Processes

balance_ions_chain

Apply balance_ions within a dataframe and output a column of water...

balance_ions_once

Apply balance_ions function and output a dataframe

balance_ions

Add Na, K, Cl, or SO4 to balance overall charge in a water

biofilter_toc

Determine TOC removal from biofiltration using Terry & Summers BDOC mo...

blend_waters_chain

Apply blend_waters within a dataframe and output a column of water...

blend_waters_once

Apply blend_waters to a dataframe and output water slots as a data...

blend_waters

Determine blended water quality from multiple waters based on mass bal...

calculate_corrosion_chain

Apply calculate_corrosion to a dataframe and output a column of `wat...

calculate_corrosion_once

Apply calculate_corrosion to a dataframe and create new columns with...

calculate_corrosion

Calculate six corrosion and scaling indices (AI, RI, LSI, LI, CSMR, CC...

calculate_dic

Calculate dissolved inorganic carbon (DIC) from total carbonate

calculate_hardness

Calculate hardness from calcium and magnesium

chemdose_ct

Determine disinfection credit from chlorine.

chemdose_dbp_chain

Apply chemdose_dbp within a data frame and output a column of `water...

chemdose_dbp_once

Apply chemdose_dbpfunction within a data frame and output a data fra...

chemdose_dbp

Calculate DBP formation

chemdose_f

Calculate new fluoride concentration after dosing alum.

chemdose_ph_chain

Apply chemdose_ph within a dataframe and output a column of water ...

chemdose_ph_once

Apply chemdose_ph function and output a dataframe

chemdose_ph

Calculate new pH and ion balance after chemical addition

chemdose_toc_chain

Apply chemdose_toc within a dataframe and output a column of water...

chemdose_toc_once

Apply chemdose_toc function and output a data frame

chemdose_toc

Determine TOC removal from coagulation

convert_units

Calculate unit conversions for common compounds

convert_water

Convert water class object to a dataframe

convert_watermg

Convert a water class object to a dataframe with ions in mg/L or ug/...

define_water_chain

Apply define_water within a dataframe and output a column of water...

define_water_once

Apply define_water and output a dataframe

define_water

Create a water class object given water quality parameters

dissolve_pb_once

Apply dissolve_pb to a dataframe and create a new column with numeri...

dissolve_pb

Simulate contributions of various lead solids to total soluble lead

ozonate_bromate

Calculate bromate formation

ozonate_ct

Determine disinfection credit from ozone.

pac_toc_chain

Apply pac_toc within a data frame and output a column of water cla...

pac_toc_once

Apply pac_tocfunction within a data frame and output a data frame

pac_toc

Calculate DOC Concentration in PAC system

pipe

Pipe operator

plot_ions

Create summary plot of ions from water class

pluck_water

Pluck out a single parameter from a water class object

solvecost_chem

Determine chemical cost

solvecost_labor

Determine labor cost

solvecost_power

Determine power cost

solvecost_solids

Determine solids disposal cost

solvedose_alk_once

Apply solvedose_alk to a dataframe and create a new column with nume...

solvedose_alk

Calculate a desired chemical dose for a target alkalinity

solvedose_ph_once

Apply solvedose_ph to a dataframe and create a new column with numer...

solvedose_ph

Calculate a desired chemical dose for a target pH

solvemass_chem

Convert mg/L of chemical to lb/day

solveresid_o3_once

Apply solveresid_o3 to a data frame and create a new column with res...

solveresid_o3

Determine ozone decay

summarize_wq

Create summary table from water class

tidywater-package

tidywater: Water Quality Models for Drinking Water Treatment Processes

Provides multiple water chemistry-based models and published empirical models in one standard format. 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>.

  • Maintainer: Sierra Johnson
  • License: Apache License (>= 2) | MIT + file LICENSE
  • Last published: 2024-11-05