[R] set_seed
Thomas Lumley
thomas at biostat.washington.edu
Tue Mar 7 19:28:49 CET 2000
On Wed, 8 Mar 2000, Nikom Thanomsieng wrote:
> Dear Sir,
> I would like to set seed in R before this command
> >B <- 10
> >x <- rnorm(15)
> for (i in 1:B)
> {boot.sample <- print(sample(x,replace=T))
> }
> ...
> >
> for reason of stable of data output. How I do ?
Use the set.seed function.
-thomas
Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list