how to make R parallel::parSapply run in absolute order of X? -


parsapply(cl = null, x, fun, ..., simplify = true,           use.names = true) 

by default run in random order of x. scheduled in order of x. possible?

scheduling in order of x not directly possible. there multiple ways around this. 1 of easy way use foreach option

.inorder=true 

giving base example. please change based on need

t <- foreach(x=x,.inorder=true) %dopar % { fun } 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -