[datatable-help] Unexpected behavior with mult="all"

Harish harishv_99 at yahoo.com
Thu Sep 2 07:38:18 CEST 2010


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 <mdowle at mdowle.plus.com> wrote:

> From: Matthew Dowle <mdowle at mdowle.plus.com>
> Subject: Re: [datatable-help] Unexpected behavior with mult="all"
> To: "Harish" <harishv_99 at yahoo.com>
> Cc: datatable-help at lists.r-forge.r-project.org
> 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
> 
> 


      


More information about the datatable-help mailing list