[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

Re: [R] Help for looping

2007-03-27 Thread Adaikalavan Ramasamy
Please try to give a simple reproducible example and simplify your codes a bit if you want to get useful responses. For example, you say your data is a matrix of 1000*30, where I presume the matrix has 1000 rows and 30 columns. If so EMP - data[,378:392] does not make sense. Perhaps you might

Re: [R] Help for looping

2007-03-26 Thread tkobayas
Rusers: I have tried to minimize computing times by taking advanage of lapply(). My data is a 1000*30 matrix and the distance matrix was created with dist(). What I am trying to do is to compute the standard distances using the frequencies attached to the nearest negibors of n reference