[R-SIG-Mac] Problems loading data file in Mac--How do you specify path name
Duncan Murdoch
murdoch at stats.uwo.ca
Thu Nov 5 01:00:32 CET 2009
On 04/11/2009 6:07 PM, Ali S wrote:
> I have used R in Windows, but am now trying it on a Mac. I am having problems loading my data as I am not sure how the path names work. Here is what I have tried and am getting errors with:
>
>
> sfs2<-read.delim(“/Users/fj/Documents/Data/Analysis/student2.txt", header
> = TRUE, sep = "\t")
If that was cut and paste, it looks as though you used the wrong kind of
quotes for the open quote. But the easiest way to get the path right is
the same on the Mac as on Windows: use file.choose() rather than typing
it explicitly.
Duncan Murdoch
>
>
>
>
>
> I would appreciate any suggestions.
> Thanks!
>
>
>
> [[alternative HTML version deleted]]
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list