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,
>
> I
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]]
__
R-hel
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 perhaps
3 matches
Mail list logo