[R] Writing Complex Formulas

peter dalgaard pdalgd at gmail.com
Fri Jul 15 14:34:11 CEST 2011


On Jul 14, 2011, at 20:19 , Duncan Murdoch wrote:

> On 14/07/2011 12:46 PM, warmstron1 wrote:
>> I resolved this issue.  It appears that "^" won't work for this case, but
>> "**" worked.  I can't find any reference to this, but where "^" seems to be
>> used to raise a value to a numerical function, "**" is used for a y raised
>> to the power of x where x it a computation.
> 
> Those should be equivalent.  Can you post the code that wasn't working, and describe what "not working" meant?

More easily, demonstrate that code that _is_ working stops working if you replace "**" with "^". Or stop spreading misinformation!

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list