[Rd] minus: operator and sign (PR#7908)
Uwe Ligges
ligges at statistik.uni-dortmund.de
Tue May 31 12:08:10 CEST 2005
Uwe Ligges wrote:
> allsi at eau.ee wrote:
>
>> Full_Name: Allan Sims
>> Version: 2.1.0
>> OS: WinXP
>> Submission from: (NULL) (193.40.25.254)
>>
>>
>> This should not be correct. It seams that first power is applied and
>> then sign.
>>
>>> -2^2
>>
>>
>> [1] -4
>>
>> ______________________________________________
>> R-devel at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
>
> So you are telling us in a *bug* report that R works as expected???
> The current R Language Definition manual tells us in Section "Parser" -
> "Expressions" - "Infox and prefix operators" (which is 10.4.2 in the
> current version) the details on the order of precendence ("^" before
> unary "-"!).
>
> Please read the docs before submitting bug reports!
>
> Uwe Ligges
>
BTW: ?Syntax should have told you as well.
Uwe Ligges
More information about the R-devel
mailing list