[R] While with 2 conditions

(Ted Harding) Ted.Harding at manchester.ac.uk
Sat Feb 28 01:16:13 CET 2009


On 27-Feb-09 19:37:50, MarcioRibeiro wrote:
> 
> Hi listers,
> I check it out at the messages... But I didn't find how do I use
> the while with 2 conditions...
> while (a>1 ????? b>1){
> a<-2
> b<-2
> }
> Should I use what...
> Thanks in advance,
> Marcio

while((a>1)&(b>1)){
  a<-2
  b<-2
}

is the way to combine the two conditions. However, I would not
want to run that particular little program ...

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 28-Feb-09                                       Time: 00:16:10
------------------------------ XFMail ------------------------------




More information about the R-help mailing list