Re: Running CSV File
"Christopher W. Ryan via R-help" <[email protected]> Tue, 31 Mar 2026 19:53:37 -0400
| Newsgroups | gmane.comp.lang.r.general |
|---|---|
| Message-ID | <[email protected]> |
In addition to all the helpful advice posted previously by others, I
notice yet another problem with the command you typed below (perhaps
this has been pointed out by others and I just missed it). As typed
here, your filename ends in a comma. Note that the comma is inside the
quotation marks rather than outside. So R does not see the comma
separating the file name from the header=TRUE part, that it expects.
> When I tried to run the data set in R studio, I get unexpected symbol in
> "g<-read.csv("cancer data.csv," header",despite writing g<-read.csv
> ("cancer data.csv," header=TRUE, sep=',').
>
--Chris Ryan