[R] .Random.seed is double

Piero Visconti piero.visconti at jcu.edu.au
Wed Nov 12 09:36:41 CET 2008


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.

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 
piero.visconti at jcu.edu.au
http://www.coralcoe.org.au/


-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
Sent: Wednesday, November 12, 2008 5:48 PM
To: Piero Visconti
Cc: r-help at 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
> piero.visconti at jcu.edu.au
> http://www.coralcoe.org.au/
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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,                  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