From ligges at statistik.uni-dortmund.de  Tue May 31 12:03:32 2005
From: ligges at statistik.uni-dortmund.de (ligges@statistik.uni-dortmund.de)
Date: Tue May 31 12:03:40 2005
Subject: [Rd] minus: operator and sign (PR#7908)
Message-ID: <20050531100332.E92EE8709@slim.kubism.ku.dk>

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


[Rd] minus: operator and sign (PR#7908)
ligges@statistik.uni-dortmund.de