Re: [R] why R doesn't recognize my file?

From: Jorge Ivan Velez <jorgeivanvelez_at_gmail.com>
Date: Thu, 24 Apr 2008 18:50:02 -0400

Hi there,

You need the extension "txt". Try this:

a<-read.table("d:/my documents/weekly.txt", sep=" ", header=TRUE)

HTH, Jorge

On Thu, Apr 24, 2008 at 4:43 PM, tzsmile <rz2171_at_yahoo.com> wrote:

>
> i want to read a txt file "weekly". this file is in d:/my documents
> i tried the following
> a<-read.table("d:/my documents/weekly", sep=" ", header=TRUE)
> but get the following error:
> Error in open.connection(file, "r") : unable to open connection
> In addition: Warning message:
> cannot open file 'd:/my documents/weekly', reason 'No such file or
> directory' in: open.connection(file, "r")
> why?
> --
> View this message in context:
> http://www.nabble.com/why-R-doesn%27t-recognize-my-file--tp16852537p16852537.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.
>

        [[alternative HTML version deleted]]



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 Thu 24 Apr 2008 - 22:52:37 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 Thu 24 Apr 2008 - 23:30:33 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