From p.dalgaard@kubism.ku.dk  Tue Apr  8 23:26:43 1997
From: p.dalgaard@kubism.ku.dk (Peter Dalgaard BSA)
Date: 09 Apr 1997 00:26:43 +0200
Subject: R-alpha: jpn() port
In-Reply-To: Kurt Hornik's message of Tue, 8 Apr 1997 20:03:01 +0200
References: <199704081803.UAA13610@aragorn.ci.tuwien.ac.at>
Message-ID: <x2hghhtal8.fsf@bush.kubism.ku.dk>

Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:

> Finally, here's something that's also been on my mind for some time now
> (and also needed help in the port).  Code like
> 
> 	if(all(names(x)) == c("x", "y"))
> 
> fails if names(x) is NULL.  Is that really necessary?  (More precisely,
> obviously we only want to test whether the two objects have equal
> values, a la Lisp `equal').

According to my parenthesis count, that expression will fail in any
case! However, I get your drift. Splus has
> all(NULL)
[1] T
> any(NULL)
[1] F

Which makes sense for cases like yours. R should probably conform to
this. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: jpn() port
Peter Dalgaard BSA