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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to