Re: [R] set condition in R

2009-11-26 Thread guohao.huang
You can use the statements ``while( I < 523 || I > 535)'' instead. It will work fine. Guo-Hao Huang -- From: "Hongwei Dong" Sent: Friday, November 27, 2009 10:59 AM To:

Re: [R] set condition in R

2009-11-26 Thread David Winsemius
On Nov 26, 2009, at 9:59 PM, Hongwei Dong wrote: Hi, R users, I'm using while() in R to set a condition. My condition is: i<523 or i>535. How should I write this in R? I try "while (i<523 or i>535)" and it does not work. Thanks. ?Logic (i<523 | i>535) Garry snipped what appeared t