Re: R-beta: Read_Table?

Douglas Bates (bates@stat.wisc.edu)
18 Apr 1998 11:09:28 -0500


To: Kryp33 <Kryp33@aol.com>
Subject: Re: R-beta: Read_Table?
From: Douglas Bates <bates@stat.wisc.edu>
Date: 18 Apr 1998 11:09:28 -0500
In-Reply-To: Kryp33's message of "Sat, 18 Apr 1998 11:48:00 EDT"

Kryp33 <Kryp33@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._