[R] converting among modes

Mark Myatt mark at myatt.demon.co.uk
Mon Jul 30 12:23:53 CEST 2001

Martin Henry H. Stevens <hstevens at muohio.edu> writes:
>Windows 2000, R 1.3.0
>I have been given a data set (ASCII tab delimited) in which many variables
>that are supposed to be numeric actually contain characters. I would be
>happy to have those character entries disappear and become NA.

Check out the na.strings parameter to read.table().


Mark Myatt

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

More information about the R-help mailing list