From p.dalgaard@biostat.ku.dk  Wed Jul 26 13:58:45 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 26 Jul 2000 14:58:45 +0200
Subject: [Rd] min(c()) = inf ??? (PR#618)
In-Reply-To: y0004379@tu-bs.de's message of "Wed, 26 Jul 2000 13:57:21 +0200 (MET DST)"
References: <200007261157.NAA17436@pubhealth.ku.dk>
Message-ID: <x266ptm4je.fsf@blueberry.kubism.ku.dk>

y0004379@tu-bs.de writes:

> min of an empty vector gives inf, should be NA / NULL ???

This is a feature, ensuring consistency: 

min(x,y) == min(min(x),min(y)) even when x or y is empty.

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] min(c()) = inf ??? (PR#618)
Peter Dalgaard BSA