Hello,
I'm trying to pass different arguments to each of the initiated processes using snowFT.  In the examples for performParallel() we have## Not run: 
# generates n normally distributed random numbers in r replicates
# on p nodes and prints their mean after each r/10 replicate.

printfun <- function(res, n, args=NULL) {
  res <- unlist(res)
  res <- res[!is.null(res)]
  print(paste("mean after:", n,"replicates:", mean(res),
           "(from",length(res),"RNs)"))
  }

r<-1000; n<-100; p<-5
res <- performParallel(p, rep(n,r), fun=rnorm,
  gentype="RNGstream", seed=rep(1,6), printfun=printfun)

# Setting p<-0 will run rnorm sequentially and should give 
# exactly the same resultsbut I'd like to use a matrix or list or ideally a dataframe so I can pass different string arguments with the n.  For example, I'd like to pass different values for n, mean, and sd in rnorm(), i.e. something like:
n = list(first = c(1000, 0, 1), second = c(2000, 1, 1), third = c(3000, 2, 1))r = 96
It's possible to do:
n = c(1, 10, 100, 1000)r = 96
but that only allows me to change the first argument to rnorm().
Any ideas?
Thanks.




 		 	   		  
	[[alternative HTML version deleted]]

