[datatable-help] dt[, 0, with=FALSE] doesn't return an empty data.table

Frank Erickson fperickson at wisc.edu
Tue May 5 23:55:47 CEST 2015


Okay, thanks. Shall I submit it then?

(I haven't used the github since y'all moved to it.)

On Tue, May 5, 2015 at 5:01 PM, Arunkumar Srinivasan <aragorn168b at gmail.com>
wrote:

> Frank, for consistency, I think it should.
>
> --
> Arun
>
> On 5 May 2015 at 22:49:41, Frank Erickson (fperickson at wisc.edu) wrote:
>
> Hi,
>
> In answering this question
> http://stackoverflow.com/q/30062012/1191259
>
> ...I noticed that
> * df[,0] gives an empty data.frame, but
> * dt[,0,with=FALSE] does not give an empty data.table.
>
> Should it? I switched to using `[.listof`(dt,0), which gives my expected
> result.
>
> Best,
>
> Frank
>  _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>
>
> _______________________________________________
> datatable-help mailing list
> datatable-help at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20150505/311def28/attachment.html>


More information about the datatable-help mailing list