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