Water Quality Models for Drinking Water Treatment Processes


[Up] [Top]

Documentation for package ‘tidywater’ version 0.6.2

Help Pages

balance_ions Add Na, K, Cl, or SO4 to balance overall charge in a water
balance_ions_chain Apply 'balance_ions' within a dataframe and output a column of 'water' class to be chained to other tidywater functions
balance_ions_once Apply 'balance_ions' function and output a dataframe
biofilter_toc Determine TOC removal from biofiltration using Terry & Summers BDOC model
blend_waters Determine blended water quality from multiple waters based on mass balance and acid/base equilibrium
blend_waters_chain Apply 'blend_waters' within a dataframe and output a column of 'water' class to be chained to other tidywater functions
blend_waters_once Apply 'blend_waters' to a dataframe and output 'water' slots as a dataframe
bromatecoeffs Data frame of bromate coefficients for predicting bromate formation during ozonation
calculate_corrosion Calculate six corrosion and scaling indices (AI, RI, LSI, LI, CSMR, CCPP)
calculate_corrosion_chain Apply 'calculate_corrosion' to a dataframe and output a column of 'water' class to be chained to other tidywater functions.
calculate_corrosion_once Apply 'calculate_corrosion' to a dataframe and create new columns with up to 6 corrosion indices
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 Calculate DBP formation
chemdose_dbp_chain Apply 'chemdose_dbp' within a data frame and output a column of 'water' class to be chained to other tidywater functions
chemdose_dbp_once Apply 'chemdose_dbp'function within a data frame and output a data frame
chemdose_f Calculate new fluoride concentration after dosing alum.
chemdose_ph Calculate new pH and ion balance after chemical addition
chemdose_ph_chain Apply 'chemdose_ph' within a dataframe and output a column of 'water' class to be chained to other tidywater functions
chemdose_ph_once Apply 'chemdose_ph' function and output a dataframe
chemdose_toc Determine TOC removal from coagulation
chemdose_toc_chain Apply 'chemdose_toc' within a dataframe and output a column of 'water' class to be chained to other tidywater functions
chemdose_toc_once Apply 'chemdose_toc' function and output a data frame
chloramine_conv Data frame of conversion factors for estimating DBP formation from chloramines
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/L
dbpcoeffs Data frame of DBP coefficients for predicting DBP formation
dbp_correction Data frame of correction factors for estimating DBP formation as a function of location
define_water Create a water class object given water quality parameters
define_water_chain Apply 'define_water' within a dataframe and output a column of 'water' class to be chained to other tidywater functions
define_water_once Apply 'define_water' and output a dataframe
discons Dissociation constants and standard enthalpy for weak acids/bases
dissolve_pb Simulate contributions of various lead solids to total soluble lead
dissolve_pb_once Apply 'dissolve_pb' to a dataframe and create a new column with numeric dose
edwardscoeff Data frame of Edwards model coefficients
leadsol_constants Data frame of equilibrium constants for lead and copper solubility
mweights Molar weights of relevant compounds
ozonate_bromate Calculate bromate formation
ozonate_ct Determine disinfection credit from ozone.
pac_toc Calculate DOC Concentration in PAC system
pac_toc_chain Apply 'pac_toc' within a data frame and output a column of 'water' class to be chained to other tidywater functions PAC = powdered activated carbon
pac_toc_once Apply 'pac_toc'function within a data frame and output a data frame
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 Calculate a desired chemical dose for a target alkalinity
solvedose_alk_once Apply 'solvedose_alk' to a dataframe and create a new column with numeric dose
solvedose_ph Calculate a desired chemical dose for a target pH
solvedose_ph_once Apply 'solvedose_ph' to a dataframe and create a new column with numeric dose
solvemass_chem Convert mg/L of chemical to lb/day
solveresid_o3 Determine ozone decay
solveresid_o3_once Apply 'solveresid_o3' to a data frame and create a new column with residual ozone dose
summarise_wq Create summary table from water class
summarize_wq Create summary table from water class
water_df Data frame of water quality parameters