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: r.789695.n4.nabble.com/parApply-computing-tp4650201.html Sent from the R help mailing list archive at Nabble.com.
Hi All. I'm using <i>parApply</i>() 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. Would you please help me on it? Thank you very much. Best, Winston 2012-11-21 winston87 [[alternative HTML version deleted]]