R - NaN

> Procedural Languages > R

1 - About

NaN in R.

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

Advertising

3 - Example

Undefined mathematical operations

> 0 / 0
[1] NaN

4 - Function

4.1 - Is.NaN

  • Is Na NaN ?
> is.nan(NA)
[1] FALSE
  • Is NaN Na ?
> is.na(NaN)
[1] TRUE
lang/r/nan.txt · Last modified: 2018/05/30 11:18 by gerardnico