You might get more useful answers if you gave more information about
exactly what you did. My wild guess is that you are sourcing a file (with
the function source()), the first line of which is the QQQ<-..., and the
second line of which has a syntax error.
One of the nice things about R is that you can cut and paste from script
files in order to try to track down errors. Did you try that with the
QQQ<- line? (It looks fine to me, and this works for me to read .csv files.)
-- Tony Plate
At Tuesday 11:46 AM 1/6/2004 -0500, Ashutosh Tayshete wrote:
>I have this line at the start of my code file.
>
>QQQ<-read.csv("c:/QQQ.csv", header=TRUE,row.names=1)
>
>And I get an error ...
>
>Error in parse(file, n, text, prompt) : syntax error on line 2
>
>What does this error mean and how can I correct it?
>What is the standard way I can read from a .csv file.
>
>Thanks
>a
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
Tony Plate tplate at acm.org