[R] Uploading into R
murdoch.duncan at gmail.com
Fri Feb 3 16:23:35 CET 2012
On 12-02-03 8:00 AM, carlb1 wrote:
> 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().
> any help appreciated
> 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
> 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