R-beta: Read_Table?

Douglas Bates bates at stat.wisc.edu
Sat Apr 18 18:09:28 CEST 1998


Kryp33 <Kryp33 at aol.com> writes:

> Can anybody help me with simple question, please? I have tried to input some
> data to R and I use the read.table function. The exactly form that I type was:
> 
> >  test1 <- read.table("D:\Rstat\Work\Abt.data",header=T,sep=",")
> 
> I've got the response from R:
> 
> Error: "scan" can't open file

R is having trouble with the file name.  I think you may need to
escape the backslashes in R strings.  That is, you would write two
backslashes in the file name wherever you have one now.  It would look
like
       read.table("D:\\Rstat\\Work\\Abt.data",header=T,sep=",")
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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