Skip to content
Prev 2149 / 63424 Next

matrix() can't handle NaN (PR#193)

Bill Simpson <wsimpson@gcal.ac.uk> writes:
And actually the logic is a bit warped:
[1] NA
[1] NA
[1] NaN
[1] TRUE
[1] FALSE
[1] TRUE
We do allow them as constants in the language itself, so I suppose we
could do it in read.table as well - this really means inside
as.double, I suppose. The prototype does this:

Splus> is.nan(as.double("NaN"))
[1] T
Nope:
[1] 0+1i

or, equivalently,
[1] 0+1i