---------- Forwarded message ---------- From: Gyanendra Pokharel <gyanendra.pokha...@gmail.com> Date: Fri, Feb 10, 2012 at 11:13 AM Subject: Re: [R] Importing a CSV file To: sezgin ozcan <szgoz...@gmail.com>
You save your file in your own folder either in desktop or in document where ever you want and serach the file using the command mydatafile <- read.csv(file.choose()) then open the file Cheers On Thu, Feb 9, 2012 at 10:20 PM, sezgin ozcan <szgoz...@gmail.com> wrote: > I have been trying to import a csv file to r. but I get the same message > everytime. the message is > > Error in file(file, "rt") : cannot open the connection > In addition: Warning message: > In file(file, "rt") : > cannot open file 'Users:/sezginozcan/Downloads/beer.data.csv': No such > file or directory > > I use mac. > I tried this command also > a<-read.table("clipboard",sep=\t,row.names=1,header=T) > Error: unexpected input in "a<-read.table("clipboard",sep=" > > I will appreciate if you help me before I get crazy. > thank you > > ______________________________________________ > 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. > [[alternative HTML version deleted]]
______________________________________________ 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.