[R] set condition in R

David Winsemius dwinsemius at comcast.net
Fri Nov 27 04:27:38 CET 2009


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 to be unrelated to this question.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list