Re: [R] questions about using loop, while and next

2011-03-04 Thread rex.dwyer
TH Rex -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Carrie Li Sent: Friday, March 04, 2011 12:10 AM To: r-help@r-project.org Subject: [R] questions about using loop, while and next Hello R helpers, I have a quick question abou

Re: [R] questions about using loop, while and next

2011-03-04 Thread Berend Hasselman
Carrie Li wrote: > > ... > In my loop, I have some random generation of data, but if the data doesn't > meet some condition, then I want it to go next, and generate data again > for > next round. > > # just an example.. > # i want to generate the data again, if the sum is smaller than 25 > temp=

[R] questions about using loop, while and next

2011-03-03 Thread Carrie Li
Hello R helpers, I have a quick question about loop and next In my loop, I have some random generation of data, but if the data doesn't meet some condition, then I want it to go next, and generate data again for next round. # just an example.. # i want to generate the data again, if the sum is s