Re: [R] Boolean expression

2015-09-14 Thread Jue Lin-Ye
​Dear Dr. Lemon, I am amazed, I did not know that a space could solve this issue. So you mean that, besides being sensible to letter capitalization, R is also sensible to spaces? Many thanks! Jue​ [[alternative HTML version deleted]] __

Re: [R] Boolean expression

2015-09-14 Thread Jim Lemon
Hi Jue, The character sequence "<-" is preferentially interpreted as "assign the value on the right to the name on the left". You can use parentheses to force the unary minus to be interpreted: if(a<(-1)) or you can just break the sequence with a space: if(a< -1) One less character, but

Re: [R] Boolean expression

2015-09-14 Thread PIKAL Petr
Hi > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Jue > Lin-Ye > Sent: Monday, September 14, 2015 3:05 PM > To: Jim Lemon > Cc: r-help mailing list > Subject: Re: [R] Boolean expression > > ​Dear Dr. Lemon, >