[R] text file problem-Help needed

Samuel Le Samuel.Le at srlglobal.com
Tue Feb 8 14:41:44 CET 2011


Hello,

Make sure you have your file in your workspace directory (you can get it on your R console with the command getwd()).

HTH,
Samuel

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of George Pantop
Sent: 08 February 2011 13:19
To: r-help at r-project.org
Subject: [R] text file problem-Help needed

Hello!
I have just uninstalled the R 2.4.1 that i was using and installed the latest version (R 2.12.1).
In order to read a text file, i was copying the text file to C/Program Files/R/R 2.4.1, and the previous version was able to read it from there.

I did the same think for the new version (copy text file to C/Program Files/R/R 2.12.1) and i tried to open it:

data <- read.table('intersand.txt')

but the result was:

Error in file(file, "rt") : cannot open the connection In addition: Warning message:
In file(file, "rt") :
  cannot open file 'intersand.txt': No such file or directory

Can someone tell me what the problem is? Must i copy the text file somewhere else?

Thank you in advance,
George Pantopoulos



        [[alternative HTML version deleted]]



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5855 (20110208) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5855 (20110208) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



More information about the R-help mailing list