[Rd] Suggestion: min(...,na.rm=T)

Agustin Lobo alobo@ija.csic.es
Wed, 11 Jul 2001 13:25:52 +0200 (MET DST)

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 =

Would not be


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


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

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