Hi, On Tuesday 08 February 2011, meik michalke wrote: > maybe it would be better to keep labels strictly to factors only,
yes, I'm starting to think so, too. I'll still wait for more input.
One corner-case is changing data from factor to character and back. Currently
levels are preserved, and I think that really is useful. So labels would still
be kept around, but probably labelled view (see below) would only be available
for factors.
> but to
> also have a switch to toggle between labeled view and integer view (like
> with unclass())?
Yes, that would be useful in it's own right. Would you add this to the feature
request tracker?
> > > in fact, this doesn't work in RKWard either:
> > > > some.data <- data.frame(a=c("a","b","c","d"), stringsAsFactors=FALSE)
> >
> > [...]
> >
> > > > some.data$a
> > >
> > > [1] "1" "2" "3" "4"
> >
> > I could not reproduce this, and we really don't mess with data.frame() on
> > this level. Are you sure?
>
> to my surprise i couldn't reproduce this myself at first. then i tried to
> reconstruct the steps i did yesterday. it seems even weirder now. the
> effect above occurs after rewriting a data.frame which is opened in the
> editor window
It was a combination of the conversion bug, with a second bug (which resulted
in the wrongly converted values to be written back to R).
I wonder how many bugs can _possibly_ be left in the data editor, now?
Regards
Thomas
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________ RKWard-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rkward-devel
