[R] Installed R to Windows, but having trouble with read.csv
Duncan Murdoch
murdoch.duncan at gmail.com
Tue Mar 3 01:49:23 CET 2015
On 02/03/2015 11:53 AM, Mello Cavallo, Alice wrote:
> I copied the file into the bin folder of R ...
>
>
>
>> perf_data <- read.csv("PerfResultsCSv.csv")
> Error in file(file, "rt") : cannot open the connection
> In addition: Warning message:
> In file(file, "rt") :
> cannot open file 'PerfResultsCSv.csv': No such file or directory
>
> I also installed and load RWeka package, but canot open.
>
>
>
> It seems like I am having some issue of directories...
>
> I am new to R, any help appreciated.
Setting the filename using the file.choose() function is usually
easiest. I.e.
f <- file.choose()
perf_data <- read.csv(f)
You'll get the usual file choose dialog (at least in Windows and OSX;
not sure about Linux) when file.choose() runs and can navigate to the
file. The full name including path will be saved in f.
Duncan Murdoch
More information about the R-help
mailing list