You can also drop the path directly into R.app: just hold down the option key 
when you drop a file into the console

I  usually just type:

twinData        = read.spss("", use.value.labels=T, to.data.frame=T, 
max.value.labels=Inf, trim.factor.names=F)

then option-drop the file in between the awaiting empty quotes.


On 2 May 2011, at 2:54 PM, Jason Lessels wrote:
> You could also simplify the path using the '~' symbol
> read.csv(file="~/Desktop/heightweight.csv”)
> 
> On 02/05/2011, at 3:37 PM, Michael Kubovy wrote:
>> 
>> Open a terminal window, drag the .csv file to that window, copy the path 
>> that will appear in that terminal into your read.csv command.
>> On May 2, 2011, at 9:28 AM, Thor Jensen wrote:
>>> Any tips on how to import data on mac's?  For example, the below line was 
>>> unsuccesful. read.csv(file="Macintosh 
>>> HD:Users:ThorJ:Desktop:heightweight.csv”)


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to