[R] A bug in the function "scan"?
Dilip N. Thadani
thadani at tkk.att.ne.jp
Mon Dec 25 12:06:45 CET 2000
R version 1.2
OS. Windows NT, service pack 6.0
Here is what I have in a text file called tmp.txt
ab,5,b'c,cd,5
i.e. the file has only one line of data (to keep things simple)
I issue the command
scan(file="c:/tmp.txt",what="",sep=",")
Read 3 items
[1] "ab" "5" "bc,cd,5"
>
Why is it not reading 5 items? If i remove the apostrophe in the third item
(ie. b'c => bc) then scan reads all 5 items as I would expect it.
Is this a bug, or am I missing something about how apostrophe's are treated?
Thanks in advance,
regards
Dilip
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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