or use forward slashes, exactly the same as in Unix.  This has the advantage
of being portable, especially if you make it relative to a starting directory.

read.table("c:/a/b/c.dat")
read.table("c:\\a\\b\\c.dat")
---- Original message ----
>Date: Tue, 9 May 2006 09:42:03 +0800
>From: ronggui <[EMAIL PROTECTED]>  
>Subject: Re: [R] read.table (Error in file(file, "r") : unable to open 
>connection)  
>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>Cc: [email protected]
>
>I guess you use R under windows,then use \\ instead of \.
>
>or use file.choose() to choose the file directly.
>

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to