I'm running R-2.0.0 (yesterday's snapshot)in its own directory, and everything works great, except: > .Random.seed Error: Object ".Random.seed" not found Does 2.0.0 not use .Random.seed for saving, etc, like it says in the help page? Thanks for any help. -Frank
Is this from a clean session, before set.seed() or any generator is called? Both S-PLUS and R, I believe, do the same thing: .Random.seed only exists _after_ set.seed() or some generator is called. Andy> From: Frank Samuelson > > I'm running R-2.0.0 (yesterday's snapshot)in its own > directory, and everything > works great, except: > > > .Random.seed > Error: Object ".Random.seed" not found > > Does 2.0.0 not use .Random.seed for saving, etc, > like it says in the help page? > > Thanks for any help. > > -Frank > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > >
On Mon, 13 Sep 2004, Frank Samuelson wrote:> I'm running R-2.0.0 (yesterday's snapshot)in its own > directory, and everything > works great, except: > > > .Random.seed > Error: Object ".Random.seed" not found > > Does 2.0.0 not use .Random.seed for saving, etc, > like it says in the help page?`Like it says on the help page'! Initially, there is no seed; a new one is created from the current time when one is required. Hence, different sessions will give different simulation results, by default. '.Random.seed' is an integer vector, containing the random number generator (RNG) *state* for random number generation in R. It can be saved and restored, but should not be altered by the user. So .Random.seed does not exist until the state does. It will after runif(1). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Frank Samuelson <fws4 at cdrh.fda.gov> writes:> I'm running R-2.0.0 (yesterday's snapshot)in its own > directory, and everything > works great, except: > > > .Random.seed > Error: Object ".Random.seed" not found > > Does 2.0.0 not use .Random.seed for saving, etc, > like it says in the help page? > > Thanks for any help.Did you check that in any other version of R? [pd at titmouse pd]$ R --vanilla R : Copyright 2004, The R Foundation for Statistical Computing Version 1.9.1 (2004-06-21), ISBN 3-900051-00-3 ....> .Random.seedError: Object ".Random.seed" not found Hint: Not set until needed... -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907