From Martin Maechler <maechler@stat.math.ethz.ch>  Wed May  6 11:27:16 1998
From: Martin Maechler <maechler@stat.math.ethz.ch> (Martin Maechler)
Date: Wed, 6 May 1998 12:27:16 +0200
Subject: min(numeric(0)) = ?  == SORRY:  R already has  +/- Inf
In-Reply-To: <199805061001.MAA05776@sophie.ethz.ch> (message from Martin
 Maechler on Wed, 6 May 1998 12:01:35 +0200)
Message-ID: <199805061027.MAA05825@sophie.ethz.ch>

My last message stated something wrong:

In R 0.62, we already have

    > min(numeric(0))
    [1] Inf
    > max(numeric(0))
    [1] -Inf
    > max(integer(0))
    [1] -Inf
    > min(integer(0))
    [1] Inf

The only change I'd propose is to return 'integer' if all arguments are
'integer', i.e., e.g.,
	
	min(integer(0))  would return  .Machine$int.max

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


min(numeric(0)) = ? == SORRY: R already has +/- Inf
Martin Maechler