From maechler@stat.math.ethz.ch  Tue May 11 15:26:43 1999
From: maechler@stat.math.ethz.ch (maechler@stat.math.ethz.ch)
Date: Tue, 11 May 1999 16:26:43 +0200 (MET DST)
Subject: matrix() can't handle NaN (PR#193)
Message-ID: <199905111426.QAA20739@pubhealth.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


matrix() can't handle NaN (PR#193)
maechler@stat.math.ethz.ch