[R] Runif Help: same variable, 3 different parameters

Dieter Menne dieter.menne at menne-biomed.de
Mon Dec 6 08:05:34 CET 2010

pythonomics wrote:
> So I am working on an economic model and I need to change the parameters
> of the runif statement as time goes on.
> X <-runif(1:50,0,5)
> X <-runif(51:100,100,150)
> X <-runif(100:T, 1,2)

c(runif(1:50,0,5), runif(51:100,100,150),runif(100:T, 1,2))

View this message in context: http://r.789695.n4.nabble.com/Runif-Help-same-variable-3-different-parameters-tp3073894p3074036.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list