SRKX
SRKX

Reputation: 1826

sapply and concurrency in R

Good afternoon,

Somebody asked me a question today and neither did I know the answer nor could I find it in the documentation.

This person simply asked me if the sapply function in R was making concurrent calls to the function you want to apply to the list, or if the computation is done sequantially.

Does anybody know the answer?

What about rapply (the recursive version of this function)?

Thanks,

Jeremie

Upvotes: 3

Views: 674

Answers (1)

hatmatrix
hatmatrix

Reputation: 44912

I believe the function is executing sequentially. If you want a parallelized version [of lapply()], you can check out mclapply() in the multicore package.

Upvotes: 3

Related Questions