R - NaN

About

NaN in R.

It defines an undefined mathematical operations and then is also an NA (Missing values)

Example

Undefined mathematical operations

> 0 / 0
[1] NaN

Function

Is.NaN

  • Is Na NaN ?
> is.nan(NA)
[1] FALSE
  • Is NaN Na ?
> is.na(NaN)
[1] TRUE

Powered by ComboStrap