>>>>> CALUM POLWART
>>>>> on Sun, 29 Mar 2026 10:49:42 +0100 writes:
> There are a couple of oddities in what's been
> provided. Some may be genuine, and others perhaps just in
> the email trail.
> read.csv should have no space in the function name
> " cancer_data" should be the EXACT name of the file. It's
> unusual to start a filename with a space. Also relatively
> unusual to not have file extension so this might actually
> be "cancer_data.csv"
> You can't attach files to this system. That would be a
> security disaster!
> You may actually find tidyverse easier to work with.
Well, really !?
> If you are struggling to load data in, I suspect you will. In
> which case:
> # run this line once only
> install.packages("tidyverse")
> Then run this:
> require(tidyverse)
> g <- read_csv("cancer_data.csv")
> Tidyverse will *try* to sort datatypes out and defaults to
> coma and headers
I don't think this was Li DiJulia's problem.
Finding the correct 'sep' etc. should not be *so* hard
*and* I really think beginners should learn base R before
starting to delve into using non-standard evaluation (a "feature" of
the tidyverse)
everywhere.
Yes, this is just my opinion.
Martin
--
Martin Maechler
ETH Zurich and R Core team
> On Sun, 29 Mar 2026, 10:32 John C Frain,
> <frainj at gmail.com> wrote:
>> Your file was not attached to your email
>>
>> Try
>>
>> g<-read. csv (" cancer_data", header=TRUE, sep=
',')
>>
>> Also, you should consult the help files before posting.
>>
>> John C Frain 3 Aranleigh Park Rathfarnham Dublin 14
>> Ireland www.tcd.ie/Economics/staff/frainj/home.html
>> https://jcfrain.wordpress.com/
>> https://jcfraincv19.wordpress.com/
>>
>> mailto:frainj at tcd.ie mailto:frainj at gmail.com
>>
>> On Sun 29 Mar 2026, 09:34 Li DiJulia,
>> <dijulia98 at gmail.com> wrote:
>>
>> > To whom it may concern,
>> >
>> > I am trying to save this file "cancer data," which I
>> have attached in this > email, into working directory and
>> when I click on "to source file location" > under set
>> working directory" it says- The current active source is
>> not > saved so does not have a directory to change
>> into. I even clicked on > "choose directory" under set
>> working directory, my file still won't show > up.
>> >
>> > As for running data, When I downloaded the cancer data
>> into R studio and > ran g<-read. csv ("
cancer_data,"
>> header=True, sep ','), I got this error > message:
>> *unexpected string consonant in g<-read. csv. ("
>> cancer_data," > header=True, sep ',').*
>> >
>> > Note: I saved the data in my computer as "cancer
data."
>> I am not sure what > I am doing wrong. Please advise
>> >
>> > When I tried this g<-read.csv. ("cancer_data,"
>> header=true, sep=",") I got > this: in
>> read.csv. ("cancer_data, header= true, sep=','):could
not
>> find > function "read.csv". I am not sure what I am
doing
>> wrong. Please advise
>> >
>> >
>> > Thanks. >
>> ______________________________________________ >
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and
>> more, see > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide >
>> https://www.R-project.org/posting-guide.html > and
>> provide commented, minimal, self-contained, reproducible
>> code.
>> >
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and
>> more, see https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> https://www.R-project.org/posting-guide.html and provide
>> commented, minimal, self-contained, reproducible code.
>>
> [[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and
> more, see https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> https://www.R-project.org/posting-guide.html and provide
> commented, minimal, self-contained, reproducible code.