Re: [R] read.csv does not find my file (windows xp)

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Thu, 24 Jun 2010 19:23:06 +0200

On 24.06.2010 19:02, Ralf B wrote:
> I try to load a file
>
> myData<- read.csv(file="C:\\myfolder\\mysubfolder\\mydata.csv",
> head=TRUE, sep=";")
>
> and get this error:
>
> Error in file(file, "rt") : cannot open the connection
> In addition: Warning message:
> In file(file, "rt") :
> cannot open file 'C:\myfolder\mysubfolder\mydata.csv: No such file
> or directory
>
> am I overlooking something?
>
> I am getting the same error when I write the path in '/' notation...
> Does R not tolorate drive letters?

It does, and if you can open the file with opther software, then you probably misspelled folder or filename.

Uwe Ligges

> Ralf
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Jun 2010 - 17:25:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jun 2010 - 17:50:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive