[R] r noobie, reading my text file into r

frankreynolds mz1060 at txstate.edu
Thu Feb 6 19:00:48 CET 2014


Hi everyone, this is my first time using r and I think I'm overlooking
something small and I just need some help seeing it. I have a file in
notepad that I need to read into r.
> ceosalary<-read.table(file="C:/Users/mz106_010/Desktop/ceosalary.csv",header
> = TRUE,sep="\t")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'C:/Users/mz106_010/Desktop/ceosalary.csv': No such file
or directory
> ceosalary<-read.table(file="C:/Users/mz106_010/Desktop/ceosalary.txt",header
> = TRUE,sep="\t")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'C:/Users/mz106_010/Desktop/ceosalary.txt': No such file
or directory

am I writing one of those incorrectly? What can I do to fix the problem? Any
help would be greatly appreciated.  Thanks for your time everyone!



--
View this message in context: http://r.789695.n4.nabble.com/r-noobie-reading-my-text-file-into-r-tp4684871.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list