R-alpha: jpn() port

Peter Dalgaard BSA p.dalgaard@kubism.ku.dk
09 Apr 1997 00:26:43 +0200


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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-