> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of sisxy
> Sent: Wednesday, September 22, 2010 5:25 PM
> To: r-help@r-project.org
> Subject: [R] import csv file problem
> 
> 
> Hello, i am trying to import the csv file into R .
> i have a file saved as csv in my desktop.
> My laptop is Window vista, version R is 2.10.1.
> 
> then i used the code
> > Q<-read.csv("Q.csv",header=TRUE)
> 
> then my error is
> 
> Error in file(file, "rt") : cannot open the connection
> In addition: Warning message:
> In file(file, "rt") :
>   cannot open file 'Q.csv': No such file or directory
> 
> i already search the previous solution....
> i am confused , because
> some say for the file name is C:\\Q.csv
> so i change to
> 
> > xx<-read.csv("C:\\desktop\\xx.csv",header=TRUE)
> 
> but ,
> Error in file(file, "rt") : cannot open the connection
> In addition: Warning message:
> In file(file, "rt") :
>   cannot open file 'C:\desktop\xx.csv': No such file or directory
> >
> 
> 
> any problem for my code ? any problem for the location of the file i
> saved
> or other possible problem that i dont know ?
> 
> Really need urgent help ...
> thanks
> 

I presume you are working in some version of Windows OS.  You have used several 
different paths to the file in your description above.  What is the exact 
location of the file in Windows?  Is it

C:\q.csv
C:\desktop\q.csv
C:\desktop\xx.csv

Or something else.  Unless we know the exact name of the file and the directory 
in which it is located, there is not much we can do to help.

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA 98504-5204


______________________________________________
R-help@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.

Reply via email to