[datatable-help] Playing nice(r) with S4?

Matthew Dowle mdowle at mdowle.plus.com
Tue Dec 7 03:26:04 CET 2010


On Tue, 2010-11-23 at 14:25 -0500, Steve Lianoglou wrote:
> On Tue, Nov 23, 2010 at 1:56 PM, Tom Short <tshort.rlists at gmail.com> wrote:
> [snip]
> > That would probably work fine for most of my uses, but I'm worried
> > about consistency with data frames. data.frame defaults to
> > auto-conversion and has a stringsAsFactors argument that defaults to
> > default.stringsAsFactors() that in turn uses
> > options('stringsAsFactors'). Here's a tentative vote for adding a
> > stringsAsFactors argument that works like data.frame's. The down sides
> > are an added argument and use of a global option.
> 
> I'm not sure I see the same pitfalls of having an extra argument,
> since it has a (reasonable) default value and I think it can largely
> be ignored by the user w/o really changing how data.table(...) works
> now in any surprising way.
> 
> Anyway, I think I'm a +1 for the stringsAsFactors param.
> 
> 
Added feature request for this one :
https://r-forge.r-project.org/tracker/index.php?func=detail&aid=1224&group_id=240&atid=978





More information about the datatable-help mailing list