You are not in the correct directory. Use read.csv(file.choose())
so that you can interactively choose the correct location. On Wed, Sep 22, 2010 at 8:24 PM, sisxy <xueying...@gmail.com> wrote: > > 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 > > -- > View this message in context: > http://r.789695.n4.nabble.com/import-csv-file-problem-tp2551256p2551256.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ 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.