library(purrr)
library(furrr)
library(tidyr)
library(dplyr)
example_df <- water_df %>%
define_water_chain() %>%
biofilter_toc_once(input_water = "defined_water", ebct = 10, ozonated = FALSE)
example_df <- water_df %>%
define_water_chain() %>%
mutate(
ebct = rep(c(10, 15, 20), 4),
ozonated = c(rep(TRUE, 6), rep(FALSE, 6))
) %>%
biofilter_toc_once(input_water = "defined_water")
# Initialize parallel processing
plan(multisession, workers = 2) # Remove the workers argument to use all available compute
example_df <- water_df %>%
define_water_chain() %>%
biofilter_toc_once(input_water = "defined_water", ebct = c(10, 20))
# Optional: explicitly close multisession processing
plan(sequential)
Run the code above in your browser using DataLab