<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;">I had the same reaction when I found out ‘subset’ already did this :-).</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’ve the same impression that it’s a bit odd, even though some people prefer it.. </div> <br> <div id="bloop_sign_1423594130745763072" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Arun</div></div> <br><p style="color:#000;">On 10 Feb 2015 at 19:39:29, Chris Neff (<a href="mailto:caneff@gmail.com">caneff@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>


<title></title>


<div dir="ltr">Wow, didn't realize that worked! So there is
precedent then.  It just looks funny to me, but you are right
it is easily avoided.  I just didn't want to see more
divergence from subset and data.frame logic, but since this already
works with subset that's fine.<br></div>
<br>
<div class="gmail_quote">On Tue Feb 10 2015 at 1:34:03 PM Arunkumar
Srinivasan <<a href="mailto:aragorn168b@gmail.com">aragorn168b@gmail.com</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Chris,</div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
But what’s the problem? You can simply not use it?</div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
It’s not that uncommon. `base::subset()` does this.</div>
</div>
<div style="word-wrap:break-word"><br>
<div>
<div style="font-family:helvetica,arial;font-size:13px">
-- <br>
Arun</div>
</div>
</div>
<div style="word-wrap:break-word"><br>
<p style="color:#000">On 10 Feb 2015 at 19:31:43, Chris Neff
(<a href="mailto:caneff@gmail.com" target="_blank">caneff@gmail.com</a>) wrote:</p>
<blockquote type="cite">
<div>
<div>
<div dir="ltr"><span>I don't like this idea. It adds extra that it
doesn't need to.  Doing it with column numbers is more
straightforward, and if all you have is names you can get numbers
by doing match() or whatever and then getting the sequence with
seq(). Having a sequence of column names is odd.</span>
<div><span><br></span>
<div class="gmail_quote"><span>On Tue Feb 10 2015 at 1:28:25 PM
Arunkumar Srinivasan <<a href="mailto:aragorn168b@gmail.com" target="_blank">aragorn168b@gmail.com</a>> wrote:<br></span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<span>Farrel,</span></div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<span><br></span></div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<span>It could be useful. Please file an issue on the github
project page. Thanks.</span></div>
</div>
<div style="word-wrap:break-word"><span><br></span>
<div>
<div style="font-family:helvetica,arial;font-size:13px">
<span>-- <br>
Arun</span></div>
</div>
</div>
<div style="word-wrap:break-word"><span><br></span>
<p style="color:#000"><span>On 10 Feb 2015 at 01:08:46, Farrel
Buchinsky (<a href="mailto:fjbuch@gmail.com" target="_blank">fjbuch@gmail.com</a>) wrote:</span></p>
<blockquote type="cite">
<div>
<div>
<div dir="ltr"><span><span>So lets say one has a data.table with
the following columns</span></span>
<div><span><br></span></div>
<div><span><a href="http://first.name" target="_blank">first.name</a>, <a href="http://last.name" target="_blank">last.name</a>, height, weight, shoe.size, eye.color,
hair.length, appendage.size, ear.length</span></div>
<div><span><br></span></div>
<div><span>If one wanted to just include weight through hair.length
one would have to go something such as this</span></div>
<div><span><br></span></div>
<div><span>dt[,list(<span style="font-size:13.1999998092651px">weight, shoe.size, eye.color,
hair.length)]</span></span></div>
<div><span style="font-size:13.1999998092651px"><br></span></div>
<div><span style="font-size:13.1999998092651px">Is there a way to
do something along the lines of</span></div>
<div><span style="font-size:13.1999998092651px"><br></span></div>
<div><span style="font-size:13.1999998092651px">dt[,list(</span><span style="font-size:13.1999998092651px">weight...hair.length)]</span><span style="font-size:13.1999998092651px"><br>
</span></div>
<div><span style="font-size:13.1999998092651px"><br></span></div>
<div><span style="font-size:13.1999998092651px">If so, can you
direct me to the documentation? If not can you build it? Is it
difficult? Some data.tables have many columns.</span></div>
<div><span style="font-size:13.1999998092651px"><br></span></div>
<div><span style="font-size:13.1999998092651px">Thanking you in
anticipation.</span></div>
<div><span style="font-size:13.1999998092651px"><br></span></div>
<div><span style="font-size:13.1999998092651px">Farrel</span></div>
</div>
_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a></div>
</div>
</blockquote>
</div>
_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a></blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>


</div></div></span></blockquote></body></html>