Displaying 1 result from an estimated 1 matches for "runparallel".
Did you mean:
unparallel
2008 Oct 03
0
Error in R/parallel
...cores desktop PC have parallel computation.
The following are my code:
########################
library(rparallel)
msd <- function(x)c(mean(x),sd(x))
m <- matrix(rnorm(100000*100),ncol=100)
st <- Sys.time()
M <- NULL
if( "rparallel" %in% names( getLoadedDLLs()) )
{
runParallel( resultVar="M", resultOp="rbind",nWorkers=2)
}else {
for(i in 1:100000){
M <- rbind(M, msd(m[i,]))
}
}
Sys.time() - st
########################
I know I can do the same thing by "apply". but just want to try the package.
and I got the following error messa...