SHARE
TWEET

Untitled

a guest Aug 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn = function(data, arg1 = c("fn1", "fn2"), arg2){
  2.   #does something
  3.  
  4.   #then calls
  5.   mapply(function(a, b){
  6.     doCall(.fcn = a, data = data, arg = b), arg1, arg2    
  7.   })
  8. }
  9.  
  10. fn1 = function(data, arg){
  11.   #does some long computation which is parallelized
  12. }
  13.  
  14. fn2 = function(data, arg){
  15.   #does some long computation which is parallelized
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top