or digging into the source - you have unearthed the root
cause.
~Malcolm
> > In my opinion, one or the other should change (the behavior of data, or the
> documentation).
> >
> > ,
> >
> > ~ Malcolm
> >
> >
> > > -Original Mess
of
> "factor".
>
> R> myiris<-read.table("data/myiris.tab",header=TRUE,as.is=FALSE)
> R> class(myiris$Species)
> [1] "factor"
>
> So it seems like adding as.is = FALSE to the call in the documentation
> would clear this up.
>
>> In m
-boun...@r-project.org] on behalf of Cook, Malcolm
[m...@stowers.org]
Sent: Friday, 19 February 2016 11:03 AM
To: 'peter dalgaard'
Cc: r-de...@stat.math.ethz.ch
Subject: Re: [Rd] should `data` respect default.stringsAsFactors()?
Hi Peter,
Sorry if I was not clear. Perhaps an example will mak
ear this up.
> In my opinion, one or the other should change (the behavior of data, or the
> documentation).
>
> ,
>
> ~ Malcolm
>
>
> > -Original Message-----
> > From: peter dalgaard [mailto:pda...@gmail.com]
> > Sent: Thursday, February 18, 2016 3:32
hange (the behavior of data, or the
documentation).
,
~ Malcolm
> -Original Message-
> From: peter dalgaard [mailto:pda...@gmail.com]
> Sent: Thursday, February 18, 2016 3:32 PM
> To: Cook, Malcolm <m...@stowers.org>
> Cc: r-de...@stat.math.ethz.ch
> Subject:
What the are you on about? data() does many things, only some of which
call read.table() et al., and the ones that do have no special treatment of
stringsAsFactors.
-pd
> On 18 Feb 2016, at 21:25 , Cook, Malcolm wrote:
>
> Hiya,
>
> Probably been debated elsewhere
>
Hiya,
Probably been debated elsewhere
I note that R's `data` function does not respect default.stringsAsFactors
By my lights, it should, especially as it is documented to call read.table,
which DOES respect.
Oh, but: