> plot(a, type='l')
Error in plot(a, type = "l") : object 'a' not found
what should I replace the object ''a'' with ?What is exactly ''a'' for?
The second error message is
> a = scan("C://EURUSD60_CLOSE.txt");
Error in file(file, "r") : cannot open the connection
In addition: Warning message:
In file(file, "r") :
cannot open file 'C://EURUSD60_CLOSE.txt': No such file or directory
I extracted the EURUSD60_CLOSE.txt file into the c//
when I check the file from the c// the file is there.But when I check the file from Session/Set working directory/Choose directory the file from the c// the file is not there.
It seems you data file is named C://EURUSD60_CLOSE.txt, so the scan function should be run as
a = scan("C://EURUSD60_CLOSE.txt")
That will get rid of the No such file or directory error. Your data will then be stored in the object named a and the next line of code, plot(a, type='l') should run, plotting your data as a line.
Thanks for your respond.Unfortunately I still get the error message in below .
> a = scan("C://EURUSD60_CLOSE.txt")
Error in file(file, "r") : cannot open the connection
In addition: Warning message:
In file(file, "r") :
cannot open file 'C://EURUSD60_CLOSE.txt': No such file or directory
>
Is this something to do Windows security settings?The file in the c//
is visible but EURUSD60_CLOSE.txt file is not visible in the Session/Set working directory/Choose directory.