[R] question about scan()

joshi@engr.orst.edu joshi at engr.orst.edu
Wed May 15 08:48:29 CEST 2002


I am using the scan function to read from a file. In 
general the syntax I am using is as follows:

scan("myfile", list(a = "", b="", c="", d=""), sep=",")

The file I am trying to read contains a #< in the 'd' 
field. When the file is read into an object, the d 
field comes as "" for that particular string. 

I guess the problem is because the # is used for 
My question is that if I want to read the #< anyways 
from the file, how do I do that?

Thanks in advance.
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