Re: [R] reproducible sample() in mclapply

2012-03-13 Thread David Winsemius
On Mar 13, 2012, at 12:51 PM, Lik Wee Lee wrote: Hi, Using the multicore package and calling sample() in mclapply, how do I get the results to be reproducible? I know the random number is seeded by process id and so is different for each run. You might want to look up the thread in last mont

Re: [R] reproducible sample() in mclapply

2012-03-13 Thread Berend Hasselman
On 13-03-2012, at 17:51, Lik Wee Lee wrote: > Hi, > > Using the multicore package and calling sample() in mclapply, > how do I get the results to be reproducible? > I know the random number is seeded by process id and so is > different for each run. Don't know about those two packages. Have a l

[R] reproducible sample() in mclapply

2012-03-13 Thread Lik Wee Lee
Hi, Using the multicore package and calling sample() in mclapply, how do I get the results to be reproducible? I know the random number is seeded by process id and so is different for each run. Thanks, Lik [[alternative HTML version deleted]]