dissolve_cu | R Documentation |
This function takes a water defined by defined_water and output a column of dissolved copper. It is an empirical model developed
based on bench-scale copper solubility testing that can be used to predict copper levels as a function of pH, DIC, and orthophosphate.
For a single water, use dissolve_cu
; to apply the model to a dataframe use dissolve_cu_chain
.
dissolve_cu(water)
water |
Source water object of class "water" created by |
Dissolved copper is a function of pH, DIC, and PO4. Output units are in mg/L.
For large datasets, using fn_once
or fn_chain
may take many minutes to run. These types of functions use the furrr package
for the option to use parallel processing and speed things up. To initialize parallel processing, use
plan(multisession)
or plan(multicore)
(depending on your operating system) prior to your piped code with the
fn_once
or fn_chain
functions. Note, parallel processing is best used when your code block takes more than a minute to run,
shorter run times will not benefit from parallel processing.
dissolve_cu
returns a column containing dissolved copper concentration in mg/L.
Lytle et al (2018)
example_cu <- define_water(ph = 7.5, alk = 125, tot_po4 = 2) %>%
dissolve_cu()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.