On Thu, 3 Dec 1998, Paul Gilbert wrote:
> In Splus 3.3 and previous to R 0.63 max(NULL) returned NA and now it
returns
>
> > max(NULL)
> Warning in max(..., na.rm = na.rm) : no finite arguments to min/max;
returning
> extreme.
> [1] -2147483647
>
> Is this a bug or an intentional change?
It's intentional: ie max of an empty set is -Inf, min is +Inf
For a while it happened silently, but now you get warned.
-thomas
Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._