[R] W-E-I-R-D Weird!

From: Bert Gunter <gunter.berton_at_gene.com>
Date: Tue, 01 Jul 2008 15:15:21 -0700

Ow ow ow. I can't stand it any longer! "Weird" is one of those weird exceptions in English to the "i before e except after c" rule and is spelled "W-E-I-R-D" .

In case you're interested, the other exceptions are seize, inveigle , either, leisure, neither.

:-( -- Bert Gunter

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of Thomas Lumley
Sent: Tuesday, July 01, 2008 2:29 PM
To: poolloopus_at_yahoo.com
Cc: r-help_at_r-project.org
Subject: Re: [R] WIERD: Basic computing in R

This is FAQ 7.33

         -thomas

On Tue, 1 Jul 2008, poolloopus_at_yahoo.com wrote:

> Can someone please enlighten me as to why the following happens?
>> -2.7^8.6
> [1] -5125.407
>
>> p<- -2.7
>> q<- 8.6
>> p^q
> [1] NaN
> R seems perfectly able to calculate -2.7^8.6, but fails when the exact
same values are assigned to variables and then the computation is repeated.
> Thanks in advance for any suggetsions.
> Kris.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley_at_u.washington.edu	University of Washington, Seattle

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 01 Jul 2008 - 22:19:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Jul 2008 - 23:31:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive