On 12-02-03 8:00 AM, carlb1 wrote:> Hi
>
> I am just starting out in R and im trying to upload some data into it. I
> have saved a small file from excel as a .txt file in the working directory
i
> am using in a folder of the same name as the .txt file. When i write the
> function to open it I keep getting this message
>
>> snow<-read.table("working directory")
> Error in file(file, "rt") : cannot open the connection
> In addition: Warning message:
> In file(file, "rt") :
> cannot open file 'working directory': Permission denied
>
> I cant seem to get any help on the internet to what I am doing wrong and
> what does this mean?
If you are really using the working directory in your read.table call,
that's wrong. Use the file path.
The easiest way to specify a file in Windows is file.choose().
Duncan Murdoch
>
> any help appreciated
>
> C
>
> --
> View this message in context:
http://r.789695.n4.nabble.com/Uploading-into-R-tp4354538p4354538.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.