
Dear hpc users,
 
Thanks in advance.
 
I am using R 2.10.0 on Windows XP, Intel(R) Core(TM) 2 Duo CPU E8400 @3.00GHz 2.99GHz, 1.96 of RAM.
 
I need you assistance to solve the problem below:
 
foreach package - Parallel Apply (Section 5.2 in Vignettes foreach Manual)
 
"Now we're only sending any given column of the matrix to one parallel execution worker. But it
would be even more efficient if we sent the matrix in bigger chunks. To do that, we use a function
called iblkcol that returns an iterator that will return multiple columns of the original matrix.
That means that the R expression will need to execute the user's function once for every column in
its submatrix".
 
The function below is from the above Vigenette:
 
applyKernel <- function(newX, FUN, d2, d.call, dn.call = NULL, ...) {
 foreach(x = iblkcol(newX, 3), .combine = "c", .packages = "foreach") %dopar%
 {
    foreach(i = 1:ncol(x)) %do% FUN(array(x[, i], d.call, dn.call), ...)
 }
}
 
> applyKernel(matrix(1:16, 4), mean, 4, 4)
 
Error in eval(expr, envir, enclos) : could not find function "iblkcol"
 
How can I get this function?
 
Once again, thank you very much for the time you have given.

 
I am looking forward for your reply.
 
Regards,
 
Deb

	[[alternative HTML version deleted]]

