From alobo@ija.csic.es  Wed Jul 11 12:25:52 2001
From: alobo@ija.csic.es (Agustin Lobo)
Date: Wed, 11 Jul 2001 13:25:52 +0200 (MET DST)
Subject: [Rd] Suggestion: min(...,na.rm=T)
In-Reply-To: <3B4967CC.974635C4@bank-banque-canada.ca>
Message-ID: <Pine.OSF.3.96.1010711131757.20936C-100000@paleo.ija.csic.es>


I've seen that:

> min(c(NA,NA,NA),na.rm=T)
[1] 2147483647
Warning message: 
no finite arguments to min/max; returning extreme. in: min(..., na.rm =
na.rm) 

Would not be

numeric(0)

a more logical result? 

(I'm using this function in a program in which the vector
can often include NA's and, sometimes, a subseting can
leave only NA values).

Thanks

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo@ija.csic.es


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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] Suggestion: min(...,na.rm=T)
Agustin Lobo