[R] About choosing file
Uwe Ligges
ligges at statistik.tu-dortmund.de
Wed Sep 15 16:15:27 CEST 2010
You can specify an absolute or relative path (relative to the current
directory) of course.
Uwe
On 15.09.2010 16:03, Stephen Liu wrote:
> Hi Uwe,
>
>> (assuming R-2.11.1)
> Yes
>
>> Test01=read.table(file.choose(), header=TRUE)
> Enter file name:
>
> My problem here is ;
> the file is NOT on /home/user directory. I need to browse for it.
>
>> list.files()
> [1] "boxplot.pdf" "Desktop" "FourPlots01.png" "hist.png"
> [5] "jranke_cran.asc" "M-x R" "M-x R~"
>
>
> B.R.
> Stephen L
>
>
>
>
>
>
> ----- Original Message ----
> From: Uwe Ligges<ligges at statistik.tu-dortmund.de>
> To: Stephen Liu<satimis at yahoo.com>
> Cc: R-help at r-project.org
> Sent: Wed, September 15, 2010 9:20:48 PM
> Subject: Re: [R] About choosing file
>
>
>
> On 26.08.2010 09:50, Stephen Liu wrote:
>> Hi folks,
>>
>>
>> Following command only works on Windows
>>> Test01=read.table(file.choose(), header=TRUE)
>>
>> It popup open a dialog box for choosing file.
>>
>>
>> But it doesn't work on Linux (Ubuntu);
>>> Test01=read.table(file.choose(), header=TRUE)
>> Enter file name:
>>
>>
>> Entering file name doesn't work. Please advise. TIA
>
>
> (assuming R-2.11.1)
>
> Why not? What happens? What is the error message? Which file did you
> specify and does
> list.files()
> lists the file? Please show the output.
>
> Best,
> Uwe Ligges
>
>>
>> B.R.
>> Stephen L
>>
>>
>>
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list