Displaying 3 results from an estimated 3 matches for "parcapply".
Did you mean:
parapply
2020 May 18
1
parRapply and parCapply return a list in corner cases
According to ?parCapply:
parRapply and parCapply always return a vector.
This appears not to be the case in the following minimal reproducible example:
> library(parallel)
> nslaves <- 2
> cl <- makeCluster(nslaves)
> X <- matrix(2,nrow=3,ncol=4)
> X <- rb...
2012 Mar 17
1
parApply vs parCapply
I've started to use the parallel package and it works very well speeding
things up. Thank you for making this easy to do.
Should I have expected that parCapply would return a vector
when parApply returns a matrix?
library(parallel)
x <- matrix(rnorm(8), nc = 2)
apply(x, 2, function(y) y)
[,1] [,2]
[1,] -0.9649685 0.91339851
[2,] -1.4313140 0.13457671
[3,] 1.0499248 1.58967879
[4,] -1.8974411 0.03639876
cl <- makeCluster(getOpt...
2012 Oct 23
0
Typos/omissions/inconsistencies in man page for clusterApply
...ULL, fun, ..., MoreArgs = NULL, RECYCLE = TRUE,
SIMPLIFY = FALSE, USE.NAMES = TRUE, .scheduling = c("static",
"dynamic"))
NULL
> args(snow::clusterMap)
function (cl, fun, ..., MoreArgs = NULL, RECYCLE = TRUE)
NULL
Same problem with parRapply and parCapply and the naming of the x/X
argument:
> args(apply)
function (X, MARGIN, FUN, ...)
NULL
> args(parApply)
function (cl = NULL, X, MARGIN, FUN, ...)
NULL
> args(parRapply)
function (cl = NULL, x, FUN, ...)
NULL
> args(parCapply)
function (cl = NULL, x, FUN,...