<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Frank, for consistency, I think it should.</div> <br> <div id="bloop_sign_1430859658625347072" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Arun</div></div> <br><p style="color:#000;">On 5 May 2015 at 22:49:41, Frank Erickson (<a href="mailto:fperickson@wisc.edu">fperickson@wisc.edu</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>



<title></title>


<div dir="ltr">Hi,
<div><br></div>
<div>In answering this question </div>
<div><a href="http://stackoverflow.com/q/30062012/1191259">http://stackoverflow.com/q/30062012/1191259</a> </div>
<div><br></div>
<div>...I noticed that</div>
<div>* df[,0] gives an empty data.frame, but</div>
<div>* dt[,0,with=FALSE] does not give an empty data.table.</div>
<div><br></div>
<div>Should it? I switched to using `[.listof`(dt,0), which gives
my expected result.</div>
<div><br></div>
<div>Best,</div>
<div><br></div>
<div>Frank</div>
</div>


_______________________________________________
<br>datatable-help mailing list
<br>datatable-help@lists.r-forge.r-project.org
<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</div></div></span></blockquote></body></html>