Re: [R] set.seed(x)

2013-06-13 Thread C W
I asked a similar question earlier in the year, http://r.789695.n4.nabble.com/How-to-stop-set-seed-besides-exiting-out-of-R-td4661717.html I liked this solution from William, > rm(list=".Random.seed", envir=globalenv()) Mike On Thu, Jun 13, 2013 at 5:27 PM, Michael Weylandt wrote: > > > On Jun

Re: [R] set.seed(x)

2013-06-13 Thread Michael Weylandt
On Jun 13, 2013, at 18:32, Duncan Murdoch wrote: > On 13/06/2013 11:59 AM, Pooya Lalehzari wrote: >> Hello, >> If I use set.seed(x) to set a seed for the random number generator, how can >> I undo that to revert a random output every time I run my code? > > If you remove .Random.seed, then th

Re: [R] set.seed(x)

2013-06-13 Thread Duncan Murdoch
On 13/06/2013 11:59 AM, Pooya Lalehzari wrote: Hello, If I use set.seed(x) to set a seed for the random number generator, how can I undo that to revert a random output every time I run my code? If you remove .Random.seed, then the next time a seed is needed it will be generated from the syste

[R] set.seed(x)

2013-06-13 Thread Pooya Lalehzari
Hello, If I use set.seed(x) to set a seed for the random number generator, how can I undo that to revert a random output every time I run my code? Thanks, Pooya. THIS E-MAIL IS FOR THE SOLE USE OF THE INTENDED RECIPIENT(S) AND MAY CONTAIN CONFIDENTIAL AND PRIVILEGED INFORMATION. ANY UNAUTHORI