[R] Running CSV File
Christopher W. Ryan
cry@n @end|ng |rom b|ngh@mton@edu
Wed Apr 1 01:53:37 CEST 2026
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
More information about the R-help
mailing list