[R] Help on looping problem needed!

2007-07-23 Thread Ing. Michal Kneifl, Ph.D.
I am wondering if someone could help me out with following problem: I have written a for loop which generates a random normal distribution let us say 1000 times. When the restriction is met (mean0.01), the loop stops, prints the mean value and plots a histogram. for(i in 1:1000) {

Re: [R] Help on looping problem needed!

2007-07-23 Thread Dimitris Rizopoulos
- Original Message - From: Ing. Michal Kneifl, Ph.D. [EMAIL PROTECTED] To: Rhelp r-help@stat.math.ethz.ch Sent: Monday, July 23, 2007 4:40 PM Subject: [R] Help on looping problem needed! I am wondering if someone could help me out with following problem: I have written a for loop which