Reputation: 365
on a HPC cluster, I would like to run in parallel the following operations :
wilcox.test(DAY1C4$analyte_value, DAY8C4$analyte_value)
wilcox.test(DAY1C8$analyte_value, DAY8C8$analyte_value)
wilcox.test(DAY1TG$analyte_value, DAY8TG$analyte_value)
I do use the following libraries :
library(parallel)
library(foreach)
library(boot)
library(doParallel)
numCores <- detectCores()
numCores
cl <- makeCluster(numCores)
Upvotes: 1
Views: 86
Reputation: 887173
We may use future_map2
furrr::future_map2(day1list, day8list, wilcox.test)
where
day1list <- list(DAY1C4$analyte_value, DAY1C8$analyte_value, DAY1TG$analyte_value)
day8list <- list(DAY8C4$analyte_value, DAY8C8$analyte_value, DAY8TG$analyte_value)
Upvotes: 2