Re: [Rd] parApply vs parCapply

2012-03-17 Thread Prof Brian Ripley
On 17/03/2012 17:03, Ken Knoblauch wrote: 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? Maybe: I would have expected so, and A

[Rd] parApply vs parCapply

2012-03-17 Thread Ken Knoblauch
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)