[datatable-help] indexing with nomatch=0

Gabor Grothendieck ggrothendieck at gmail.com
Sat May 4 00:52:31 CEST 2013


The definition of DT was left out by mistake.  It should be:

DT <- data.table(a=letters[1:3])


On Fri, May 3, 2013 at 6:50 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> Consider this example:
>
>> DT[1:4,,nomatch=0]
>     a
> 1:  a
> 2:  b
> 3:  c
> 4: NA
>
> Should it not return only the first 3 rows?  It seems to be ignoring
> the nomatch=0.
>
> --
> Statistics & Software Consulting
> GKX Group, GKX Associates Inc.
> tel: 1-877-GKX-GROUP
> email: ggrothendieck at gmail.com



--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com


More information about the datatable-help mailing list