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

maechler@stat.math.ethz.ch maechler@stat.math.ethz.ch
Tue, 11 May 1999 16:26:43 +0200 (MET DST)


Bill argues that NaN should be treated as a number, 
even by read.table() and I think he is right.
{ scan(.) does fine !  it *does* treat NaN as numbers ! }

At the moment, I don't even see where the problem is;
the read.table internal function  type.convert()
does well with NaN's :
     > cc <- as.character(c(pi,NaN))
     > str(type.convert(cc))
      num [1:2] 3.14  NaN

Martin

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._