On Wed, 12 Nov 2008, Piero Visconti wrote:

Hi,
Thanks for the help. That worked fine. I never set the random seed myself so
it must have been another program.

The only other programming language I am using is MATLAB. I don't know if
that could be it.

It must have been an R package you used (note I said 'software' not 'program'). There used to be several that did this in examples, but AFAIK none are left, so it would be worth checking your packages are up-to-date.


Regards,


Piero Visconti, PhD candidate
Australian Research Council Centre of Excellence for Coral Reef Studies
James Cook University
Townsville QLD 4811 Australia
Phone +61 7 47816024
[EMAIL PROTECTED]
http://www.coralcoe.org.au/


-----Original Message-----
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2008 5:48 PM
To: Piero Visconti
Cc: r-help@r-project.org
Subject: Re: [R] .Random.seed is double

On Wed, 12 Nov 2008, Piero Visconti wrote:

Hi

I am experiencing a problem with the random number generator. When I call
any function that involve RNG such as "runif"  or "sample" I get this
error:
.Random.seed is not an integer vector but of type 'double'
I can't coerce the random seed and it's recommended not to alter it
anyway.
Can anybody help me?

How did it get to be double?  You or some software you are using assigned
it as such.  It would be best to track that down, but

rm(.Random.seed)

is the preferred solution.


Thanks and kind regards,


Piero Visconti, PhD candidate
Australian Research Council Centre of Excellence for Coral Reef Studies
James Cook University
Townsville QLD 4811 Australia
Phone +61 7 47816024
[EMAIL PROTECTED]
http://www.coralcoe.org.au/


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


--
Brian D. Ripley,                  [EMAIL PROTECTED]
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


--
Brian D. Ripley,                  [EMAIL PROTECTED]
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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to