Re: [R] set condition in R

2009-11-26 Thread guohao.huang
ember 27, 2009 10:59 AM To: "R-help Forum" Subject: [R] set condition in R 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.

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

[R] set condition in R

2009-11-26 Thread Hongwei Dong
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. Garry On Tue, Nov 10, 2009 at 11:26 AM, Hongwei Dong wrote: > Exactly! Thanks, Duncan. > > Let me re-phrase me qu