I would assume that the file that you are trying to read is not in the
current directory your program is in.  Do 'list.files()' to see what
is in the current directory.  Also use 'setwd' to get you to the
directory you should be in.

On 11/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear helpers please provide me some helpful answer to my problem while I m
> trying to run a program .I m attaching both the program and the data to
> which I have to obtain my estimation results.
> "Motives.dat" is the data file, and "OBTfile4.3" is the complete code of
> program. by Running this
>  //
> rawdata<-matrix(scan(inputFile, n = nsubj*ncomp), nsubj, ncomp, byrow = TRUE)
>  \\
> The error appears to be
> //
> Error in file(file, "r") : unable to open connection
> In addition: Warning message:
> cannot open file 'motives_pc.dat', reason 'No such file or directory' in:
> file(file, "r")
> \\
> where # name of preferences data file is assigned as,
>       inputFile <- "motives_pc.dat
> Thanking Regards
>
> SYED ADIL HUSSAIN (+923455205402)
> QUAID-E-AZAM UNIVERSITY
> ISLAMABAD, PAKISTAN.
>
> This is Virus Free Email Scanned by QAU's McAfee Virus Scanner
> ""THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL
> and is thus for use only by the intended recipient. If you received this in 
> error, please contact the sender and delete the e-mail
> and its attachments from all computers."
> www.qau.edu.pk
>
> ______________________________________________
> R-help@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.
>
>
>


-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
R-help@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.

Reply via email to