But this has nothing to do with 7.31 and everything to do with operator
precedence and automatic casting  from integers to logical and vice-versa.

I also think it fair to say that all (??) languages have these sorts of
malapropisms due to operator precedence.

-- Bert

On Sun, Mar 17, 2013 at 7:17 PM, Charles Berry <ccbe...@ucsd.edu> wrote:

>
>
> Hi all,
>
> The subject line is TRUE.
>
> Today I accidentally typed rnorm(!0).
>
> My old eyes took a minute to focus clearly enough to see what I really
> typed and
> why I got '!0' random numbers instead of '10' random normal numbers.
>
> If the subject line is disturbing, be assured that this is TRUE:
>
>  !0^2 == !0 * !0  #  ;-)
>
> Anyway, I hope the hands who have been around long enough to know FAQ 7.31
> by
> heart and know why precedence of operators matters have a laugh.
>
> Best,
>
> Chuck
>
> ______________________________________________
> R-help@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.
>



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to