I'm using /parApply/() function in "snow" package for parallel computing
(boostrapping repeating calculation), as the follows:

MyBoostrapping <- function( i ){
     .....
}
cl <- makeCluster( ncluster, type = "SOCK") 
i.circle <- as.matrix( 1:128, , 1)
parApply( cl, i.circle, 1, FUN = MyBoostrapping)

It works.
However, I want to set more than one arguments to function MyBoostrapping,
e.g., MyBoostrapping <- function( i , A, B)
Would you please help me on it?

Thank you very much.



--
View this message in context: 
http://r.789695.n4.nabble.com/parApply-computing-tp4650201.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to