foreach loop from doparallel

I want to perform parallel processing using same data frame and function with varying arguments of the function via foreach loop.

Assume that I have a data frame of 10,000 samples, each with 100 diagnostic assays in columns. I want to calculate sensitivity and specificity between each pairs of 100 assays. Can I do this using parallel processing in R via foreach loop?

Thanks in advance!


Hi SDStat,
You will need to do some homework. Try this vignette from the doParallel package.

If you can't get your code to work, you'll need to provide a good reproducible example that people on this forum can help to debug.

1 Like

Thanks for your help!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.