[R] max and pmax of NA and NaN

Michal Burda michal.burda at centrum.cz
Mon Jan 15 12:04:13 CET 2018


Dear R users,

is the following OK?

> max(NA, NaN)
[1] NA
> max(NaN, NA)
[1] NA
> pmax(NaN, NA)
[1] NA
> pmax(NA, NaN)
[1] NaN


...or is it a bug? Documentation says that NA has a higher priority over
NaN.


Best regards, Michal Burda

	[[alternative HTML version deleted]]



More information about the R-help mailing list