[R] loading a file in R in mac OS X
caballo
jamespitts at hotmail.com
Thu Jul 16 13:32:50 CEST 2009
Hello,
Please forgive me that this question is so basic, but i have not been able
to find a solution in any of the basic R introductions, in the R wiki, or in
the stats textbook i'm using to learn R. I run R on a macintosh, and i have
not been able to load any data files yet. For instance, if I have a data
table in a file called schools.txt on my desktop, i've been trying to load
the table as such:
> schools <-
> read.table("c:\harddrivename\users\username\desktop\schools.txt",
> header=T,row.names=1)
(obviously for the purposes of posting in this forum i've entered generic
folder names.)
No matter how i ammend the path, i get the following error message:
Error in file(file, "r") : cannot open the connection
In addition: Warning message:
In file(file, "r") :
cannot open file 'c:\harddrivename\users\username\desktop\schools.txt':
No such file or directory.
I'm guessing that there's a different way to enter the path name on a
macintosh?
Thanks for your help!
--
View this message in context: http://www.nabble.com/loading-a-file-in-R-in-mac-OS-X-tp24514721p24514721.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list