[R-SIG-Mac] import data Mac OS
Simon Urbanek
simon.urbanek at r-project.org
Mon May 2 16:14:11 CEST 2011
...and while we are at this long thread about trivial things, another simple alternative in the GUI is to use file.choose()
twinData = read.spss(file.choose(), use.value.labels=T, to.data.frame=T, max.value.labels=Inf, trim.factor.names=F)
On May 2, 2011, at 10:08 AM, Timothy Bates wrote:
> 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
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
More information about the R-SIG-Mac
mailing list