water1 <- define_water(ph = 7, alk = 100, tds = 100, toc = 5) %>%
modify_water(slot = "toc", value = 4, units = "mg/L")
library(dplyr)
example_df <- water_df %>%
define_water_chain() %>%
modify_water_chain(slot = "br", value = 50, units = "ug/L")
# \donttest{
# Un-comment below to initialize parallel processing
# library(furrr)
# plan(multisession)
example_df <- water_df %>%
define_water_chain() %>%
mutate(bromide = rep(c(20, 30, 50), 4)) %>%
modify_water_chain(slot = "br", value = bromide, units = "ug/L")
# Optional: explicitly close multisession processing
# plan(sequential)
# }
Run the code above in your browser using DataLab