Skip to content
Prev 39327 / 63421 Next

min/max of a vector with NAs and NaNs

On Wed, 23 Feb 2011, Herv? Pag?s wrote:

            
This seemed to depend on the compiler, and in your case the compiler 
has optimized away the code to achieve this.   I've changed the code 
in R-devel to something that seems to be more robust.  Note that the 
comment did not apply to max(NA, NaN), but that should also now be 
consistent.