[datatable-help] Bug when Merging with nomatch=0 and roll=T?

Michael Smith my.r.help at gmail.com
Thu Jun 19 05:59:59 CEST 2014


By the way, I know it's not reproducible with the code below. Before
going into further detail, I first wanted to ask whether this looks like
a bug, or whether I've overlooked something obvious and this is expected
behavior.

Thanks,
M

On 06/19/2014 11:51 AM, Michael Smith wrote:
> I got the following result on my keyed data tables `CS` and `SP`, which
> seems like a bug (in 1.9.2 and 1.9.3 dev version) to me, since all
> columns should have the _same_ length:
> 
>> ## Works as expected:
>> all((l <- sapply(CS[SP, roll = TRUE], length)) == l[1])
> [1] TRUE
>> ## Works as expected:
>> all((l <- sapply(CS[SP, nomatch = 0], length)) == l[1])
> [1] TRUE
>> ## Here's the potential _bug_, when combining both:
>> all((l <- sapply(CS[SP, nomatch = 0, roll = TRUE], length)) == l[1])
> [1] FALSE
> 
> 
> Thanks,
> 
> M
> 


More information about the datatable-help mailing list