[R] (-8)^(1/3) == NaN?

2009-07-18 Thread Dave DeBarr
Why does the expression (-8)^(1/3) return NaN, instead of -2? This is not answered by http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-are-powers-of-negative-numbers-wrong_003f Thanks, Dave [[alternative HTML version deleted]] __

[R] R-2.7.2 infected?

2008-09-22 Thread Dave DeBarr
I tried downloading R-2.7.2 (http://cran.cnr.berkeley.edu/bin/windows/base/R-2.7.2-win32.exe, both from Berkeley and cran) and both times I got a warning from Computer Associates eTrust Antivirus (version 7.1.710) that the Win32/Adclicker.JO trojan was detected: The Win32/Adclicker.JO was

Re: [R] R-2.7.2 infected?

2008-09-23 Thread Dave DeBarr
, 2008 8:41 PM To: Dave DeBarr Cc: r-help@r-project.org Subject: Re: [R] R-2.7.2 infected? Dave DeBarr wrote: I tried downloading R-2.7.2 (http://cran.cnr.berkeley.edu/bin/windows/base/R-2.7.2-win32.exe, both from Berkeley and cran) and both times I got a warning from Computer Associates eTrust

Re: [R] R-2.7.2 infected?

2008-09-29 Thread Dave DeBarr
-project.org; Dave DeBarr; Duncan Murdoch Subject: Re: [R] R-2.7.2 infected? This is what it does. It seems like a false alarm because in case of actual infection it seems quite conspicious Ajay www.decisionstats.com http://www.spywareguide.com/product_show.php?id=2569 Full Name: Win32

[R] Question about expression parser for "return" statement

2016-11-13 Thread Dave DeBarr
I've noticed that if I don't include parentheses around the intended return value for the "return" statement, R will assume the first parenthetical expression is the intended return value ... even if that parenthetical expression is only part of a larger expression. Is this intentional? I'm