[R] Can anyone help??

Cody Hamilton Cody_Hamilton at Edwards.com
Wed Jan 16 23:07:04 CET 2008


Try replacing '\' with '/'

Regards,
   -Cody

Cody Hamilton
Edwards Lifesciences

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of hoogeebear
Sent: Wednesday, January 16, 2008 10:35 AM
To: r-help at r-project.org
Subject: [R] Can anyone help??


Hi,

Im getting the following error when I attempt to read a csv file into R. I
have the file saved on my C drive. Id really appreciate it if anyone can
help....

My Command:

> survey <- read.csv (file = "C:\onlinesurvey.csv",head= TRUE, sep =",")

Error:

Error in file(file, "r") : unable to open connection

In addition: Warning messages:
1: '\o' is an unrecognized escape in a character string
2: unrecognized escape removed from "C:\onlinesurvey.csv"
3: In file(file, "r") :
  cannot open file 'C:onlinesurvey.csv', reason 'No such file or directory'

I have the file located on the C drive so I do not know why its telling me
"no such file or directiry".
--
View this message in context: http://www.nabble.com/Can-anyone-help---tp14888245p14888245.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