[R] Interval for rnorm command?

zagreus a0906257 at unet.univie.ac.at
Sat Jun 7 16:23:48 CEST 2014


Hello everyone!

I want to create a data vector using the "rnorm" command. Let's say /x <-
rnorm(100, 1, 2)/. This gives me 100 values from the specific normal
distribution. However, I want to generate a variable that has a certain
range of values, e.g. values can't exceed the interval /[-3.7; 3.7]/. How
can I implement such an interval? 

Thanks for your help and sorry if this is totally trivial, I am new to R. 



--
View this message in context: http://r.789695.n4.nabble.com/Interval-for-rnorm-command-tp4691856.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list