Table of Contents

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.nan(NA)
[1] FALSE
> is.na(NaN)
[1] TRUE