From ligges at statistik.uni-dortmund.de  Tue May 31 12:08:10 2005
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Tue May 31 12:07:08 2005
Subject: [Rd] minus: operator and sign (PR#7908)
In-Reply-To: <429C36AA.7080609@statistik.uni-dortmund.de>
References: <20050531092444.3B1FEA1D8@slim.kubism.ku.dk>
	<429C36AA.7080609@statistik.uni-dortmund.de>
Message-ID: <429C378A.5080203@statistik.uni-dortmund.de>

Uwe Ligges wrote:

> allsi@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@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


[Rd] minus: operator and sign (PR#7908)
Uwe Ligges