library(purrr)
library(furrr)
library(tidyr)
library(dplyr)
example_df <- water_df %>%
define_water_chain() %>%
balance_ions_once()
example_df <- water_df %>%
define_water_chain(output_water = "Different_defined_water_column") %>%
balance_ions_once(input_water = "Different_defined_water_column")
# Initialize parallel processing
plan(multisession, workers = 2) # Remove the workers argument to use all available compute
example_df <- water_df %>%
define_water_chain() %>%
balance_ions_once()
# Optional: explicitly close multisession processing
plan(sequential)
Run the code above in your browser using DataLab