[R] How can I read the actual value (?) defined by set.seed(?) earlier?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Nov 28 09:28:08 CET 2007
On Wed, 28 Nov 2007, Johannes Reichl wrote:
> I need to get the seed value that has been set by set.seed() earlier. I
> only do have the workfile *.Rdata so I can not simply look to the code.
You cannot: it is not stored at the time. set.seed() sets .Random.seed,
and you can save/restore that. However, the workspace will only contain
the current value, not the initial value.
Normally the history is saved when you save the workspace: perhaps you do
still have that and can search it for your call to set.seed (if there is
one: there need not be).
--
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
More information about the R-help
mailing list