[datatable-help] Bug in merge for data.table?

Joseph Voelkel jgvcqa at rit.edu
Tue Jan 18 16:05:07 CET 2011


And another thanks!

-----Original Message-----
From: datatable-help-bounces at lists.r-forge.r-project.org [mailto:datatable-help-bounces at lists.r-forge.r-project.org] On Behalf Of Matthew Dowle
Sent: Monday, January 17, 2011 6:21 PM
To: datatable-help at lists.r-forge.r-project.org
Subject: Re: [datatable-help] Bug in merge for data.table?

Just to close this thread, Tom fixed that bug too. In 1.5.2. Tests
added.
Matthew

On Fri, 2010-12-31 at 09:56 -0500, Tom Short wrote:
> Agreed. There are a couple of bugs in merge that need to be fixed.
> It's not as well used as the main data.table indexing.
> 
> - Tom
> 
> On Fri, Dec 31, 2010 at 9:52 AM, Matthew Dowle <mdowle at mdowle.plus.com> wrote:
> >
> > Looks like a bug to me. Thanks for raising it.
> > Added here:
> > https://r-forge.r-project.org/tracker/index.php?func=detail&aid=1241&group_id=240&atid=975
> > Matthew
> >
> > On Wed, 2010-12-29 at 13:00 -0500, Joseph Voelkel wrote:
> >> Consider the following code. It seems like the errors that occur when
> >> y only has a key column is a bug. Yes?
> >>
> >>
> >>
> >> DT<-data.table(a=rep(1:2,each=3),b=1:6,key="a")
> >>
> >>
> >>
> >> y<-J(a=c(0,1),bb=c(10,11),key="a") # y, with key column and one more
> >> column
> >>
> >> merge(y,DT) # fine
> >>
> >> merge(y,DT,all=TRUE) # fine
> >>
> >>
> >>
> >> y<-J(a=c(0,1),key="a") # y with only a key column
> >>
> >> merge(y,DT) # fine
> >>
> >> merge(y,DT,all=TRUE) # error
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> datatable-help mailing list
> >> datatable-help at lists.r-forge.r-project.org
> >> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
> >
> >
> > _______________________________________________
> > datatable-help mailing list
> > datatable-help at lists.r-forge.r-project.org
> > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
> >


_______________________________________________
datatable-help mailing list
datatable-help at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help


More information about the datatable-help mailing list