[R] Specify Path of an Excel file in R
My Coyne
mcoyne at boninc.com
Sun Feb 17 17:14:40 CET 2008
Try:
X<- read.csv ("<full path file name>") or
Y<- read.delim("<full path file name>", sep=",", header=T)
Example, if your file is in C-directory, file name is my_file, and the file
has a header.
X<- read.csv("c:\\my_file") or
Y<- read.delim("c:\\my_file", sep=",", header=T)
My D. Coyne
-----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.
More information about the R-help
mailing list