[R] read.csv does not find my file (windows xp)
ralf.bierig at gmail.com
Thu Jun 24 19:36:26 CEST 2010
jep! I forgot to use sep="" for paste and introducted a space in front
of the filename... damn, 1 hour of my life!
2010/6/24 Uwe Ligges <ligges at statistik.tu-dortmund.de>:
> 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
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help