That is only relevant if nomatch=NA. On Fri, May 3, 2013 at 7:00 PM, Steve Lianoglou <[email protected]> wrote: > On Fri, May 3, 2013 at 3:54 PM, Eduard Antonyan > <[email protected]> wrote: >> There is no join'ing happening here, thus nomatch=0 has no effect. > > Indeed -- and the result is consistent with doing the same thing to a > base::data.frame: > > R> df <- data.frame(a=letters[1:3]) > R> df[1:4,,drop=FALSE] > a > 1 | a > 2 | b > 3 | c > NA| NA > > (my print.data.frame function is a monkey-patched version of the > print.data.table function, which is why the output looks a bit > different than what you'd likely to see) > > -steve > > > >> >> >> On Fri, May 3, 2013 at 5:52 PM, Gabor Grothendieck <[email protected]> >> wrote: >>> >>> 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 >>> <[email protected]> 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 >>> _______________________________________________ >>> datatable-help mailing list >>> [email protected] >>> >>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help >> >> >> >> _______________________________________________ >> datatable-help mailing list >> [email protected] >> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help > > > > -- > Steve Lianoglou > Computational Biologist > Department of Bioinformatics and Computational Biology > Genentech
-- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com _______________________________________________ datatable-help mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
