From pdalgd at gmail.com  Thu Feb 18 22:31:54 2016
From: pdalgd at gmail.com (peter dalgaard)
Date: Thu, 18 Feb 2016 22:31:54 +0100
Subject: [Rd] should `data` respect default.stringsAsFactors()?
In-Reply-To: <39490c6c6e9b48ff8032837df07baf9b@exchsrv2.sgc.loc>
References: <39490c6c6e9b48ff8032837df07baf9b@exchsrv2.sgc.loc>
Message-ID: <766463AE-5379-445B-A17D-9AAD806DA5E3@gmail.com>

What the <bleep> 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 <MEC at stowers.org> wrote:
> 
> 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:  http://r.789695.n4.nabble.com/stringsAsFactors-FALSE-tp921891p921893.html  
> 
> Compelling.  I have to agree.
> 
> So, I change my mind.  
> 
> By my lights, `data` should then be documented to NOT respect default.stringsAsFactors.
> 
> Else?
> 
> ~Malcolm Cook
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] should `data` respect default.stringsAsFactors()?
peter dalgaard