Matthew, Thanks for the fix. (And sorry about the delay in responding.)
This helps me quite a bit with something I am working on. Harish --- On Sat, 8/21/10, Matthew Dowle <[email protected]> wrote: > From: Matthew Dowle <[email protected]> > Subject: Re: [datatable-help] Unexpected behavior with mult="all" > To: "Harish" <[email protected]> > Cc: [email protected] > Date: Saturday, August 21, 2010, 5:12 PM > Harish, > > Just fixed this one, bug #1015 : mult='all' should return > NA when > j=list(d) i.e. 'by without by' now heeds nomatch=NA. > > > x[y,list(d),mult="all"] > a b d > [1,] a A 1 > [2,] b A 2 > [3,] c A NA > [4,] d A NA > > > > The old behaviour is returned via nomatch=0. > > > x[y,list(d),mult="all",nomatch=0] > a b d > [1,] a A 1 > [2,] b A 2 > > > > We can observe the j running 4 times now : > > > x[y,{cat('running j\n');list(d)},mult='all'] > running j > running j > running j > running j > a b V1 > [1,] a A 1 > [2,] b A 2 > [3,] c A NA > [4,] d A NA > > > > Have added 21 new tests related to this change. > > Thanks once again for raising it, it really is much > appreciated. > > Matthew > > _______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
