Re: [R] Problem reading from a file

2009-06-18 Thread David Winsemius
1) What is the rest of your code ... e.g. that part which sets up the file names and at least the parameters and file access parts of the function cluster_compare? PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, rep

[R] Problem reading from a file

2009-06-18 Thread Nick Angelou
Hi all, I have written a function cluster_compare(myfile, mclfile) I called it giving names of files in the working directory (I see them with dir()). I get Error in file("myfile", "r") : cannot open the connection In addition: Warning message: In file("myfile", "r") : cannot open file 'myf