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

Frank Erickson fperickson at wisc.edu
Tue May 5 22:49:12 CEST 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20150505/b54ceb27/attachment.html>


More information about the datatable-help mailing list