[R] Factors and NaN
Dinesh Chowdhary
mhdk.dinesh at gmail.com
Fri Dec 5 16:16:56 CET 2014
R-3.1.2
> x <- factor(c("yes", "yes", "no", NA, "yes", "no", NaN))
> x
[1] yes yes no <NA> yes no NaN
Levels: NaN no yes
> is.nan(x)
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE
>From the above snippet can you notice that the "NaN" value is not logically
identified in a vector? Can anyone elaborate on this?
Thank you for your effort!
[[alternative HTML version deleted]]
More information about the R-help
mailing list