[R] Help - Importing data from txt and xlsx files

AMFTom the.quiet.room at gmail.com
Fri Apr 13 14:29:20 CEST 2012


Hi all, 

I have just started to use R for my PhD project and have no previous
experience in programming. I am having trouble importing data to R.   This
is the output:

> mydata <- read.table("Lv2.8.txt")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'Lv2.8.txt': No such file or directory

I know there is a file on my computer with this name though... What am I
doing wrong?

Thanks in advance!

Tom

--
View this message in context: http://r.789695.n4.nabble.com/Help-Importing-data-from-txt-and-xlsx-files-tp4554622p4554622.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list