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

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Wed, 6 May 1998 12:27:16 +0200


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