R-alpha: R-beta: vector recycling weirdness

Thomas Lumley thomas@biostat.washington.edu
Sun, 27 Apr 1997 14:39:02 -0700 (PDT)


wompom:~> R
R : Copyright 1997, Robert Gentleman and Ross Ihaka
Version 0.49 Beta (April 23, 1997)

R> f
function () 
{
        FALSE & matrix(FALSE, ncol = 1)
}
R> g
function () 
FALSE & matrix(FALSE, ncol = 1) 
R> f()
Warning in FALSE & matrix(FALSE, ncol = 1) : longer object length
        is not a multiple of shorter object length
      [,1]
[1,] FALSE
R> g()
      [,1]
[1,] FALSE
 
Is this weird or what?


Thomas Lumley
-----------------------------------------------------+------
Biostatistics		: "Never attribute to malice what  :
Uni of Washington	:  can be adequately explained by  :
Box 357232		:  incompetence" - Hanlon's Razor  :
Seattle WA 98195-7232	:				   :
------------------------------------------------------------

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-