[R] Importing data

Will Terry will at hss.caltech.edu
Sun Feb 19 23:32:58 CET 2006


Hi all,

I'm a new R user trying to import some tab delimited data. It's not  
clear to me why the following code won't work on my Mac:

 > read.delim("asphodel:Users:will:Desktop:Math_282:hw2:hw2- 
data1.txt",header=TRUE)
Error in file(file, "r") : unable to open connection
In addition: Warning message:
cannot open file `asphodel:Users:will:Desktop:Math_282:hw2:hw1- 
data1.txt'

Is this the correct syntax for specifying the path? Thanks!

-Will




More information about the R-help mailing list