Hey Galois (?),
See the help file for set.seed() (help(set.seed)).
In short, the current seed is stored in the variable .Random.seed. You
can save the seed with:
myseed <- .Random.seed
Hope that helps,
Simon
-
Simon Bonner
Post-Doctoral Fellow
Department of Statistics, UBC
www.simon.bonners
I'm trying to save the random seed in a for loop. How can one go about doing
that and preserving the seed for the next session.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-hel
2 matches
Mail list logo