Skip to content
Prev 25776 / 398502 Next

Error message: missing value where logical needed

"Haynes, Maurice (NIH/NICHD)" wrote:
See ?NA on how to deal with NAs (specifically test on NAs [is.na()] and
assignment of NAs [as well is.na(), in principle]). Examples:
 is.na(x)
 is.na(x) <- TRUE

You can specify the NA character in read.table at once as in:
 read.table(my.file, na.string = -9)

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._