Learn R Programming

tidywater (version 0.7.0)

solvemass_chem: Convert mg/L of chemical to lb/day

Description

This function takes a chemical dose in mg/L, plant flow in MGD, and chemical strength and calculates lb/day of product

Usage

solvemass_chem(dose, flow, strength = 100)

Value

A numeric value for the chemical mass in lb/day.

Arguments

dose

Chemical dose in mg/L as chemical

flow

Plant flow in MGD

strength

Chemical product strength in percent. Defaults to 100 percent.

Examples

Run this code
alum_mass <- solvemass_chem(dose = 20, flow = 10, strength = 49)

library(dplyr)
mass_data <- tibble(
  dose = seq(10, 50, 10),
  flow = 10
) %>%
  mutate(mass = solvemass_chem(dose = dose, flow = flow, strength = 49))

Run the code above in your browser using DataLab