Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any parallel function for mapply?

Tags:

r

I am looking for a function that will take two vectors simultaneously and perform parallel computing. For an example, if we want to use "sapply" in parallel with multiple cores, we use "parSapply()". I searched on google but did not find anything similar to "parMapply()". Any suggestions, please.

like image 451
Shakil Avatar asked Apr 18 '26 23:04

Shakil


1 Answers

The package parallel comes with the mcmapply function that behaves like mapply but can use mulitple cores.

like image 116
sinQueso Avatar answered Apr 20 '26 12:04

sinQueso