Re: [R] Specify Path of an Excel file in R

From: Charles Annis, P.E. <Charles.Annis_at_statisticalengineering.com>
Date: Sun, 17 Feb 2008 11:20:27 -0500

One way that works for lazy people like me is to use file.choose().

  1. Type in "file.choose()" without the quotes and hit <enter>
  2. Navigate to the folder and file that you want and click on it.
  3. R will show you the complete path to your file.

An even easier way is to do something like this:

my.stuff <- read.csv(file.choose(), ...

and then navigate to your file.

Charles Annis, P.E.

Charles.Annis_at_StatisticalEngineering.com phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com  

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of savanna3000
Sent: Sunday, February 17, 2008 10:53 AM To: r-help_at_r-project.org
Subject: [R] Specify Path of an Excel file in R

Hello Helpers,

   I have an Excel file on my desktop (.csv) which I want to use in my R worksheet, how can I specify the path while using read.csv() ?

       Savanna

-- 
View this message in context:
http://www.nabble.com/Specify-Path-of-an-Excel-file-in-R-tp15530586p15530586
.html
Sent from the R help mailing list archive at Nabble.com.


______________________________________________
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.
Received on Sun 17 Feb 2008 - 16:22:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 17 Feb 2008 - 16:30:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive