<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"><span><div><div></div><div>
<div dir="ltr">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.
<div><br>
<div class="gmail_quote">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>
<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">
Farrel,</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">
It could be useful. Please file an issue on the github project
page. Thanks.</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 01:08:46, Farrel Buchinsky
(<a href="mailto:fjbuch@gmail.com" target="_blank">fjbuch@gmail.com</a>) wrote:</p>
<blockquote type="cite">
<div>
<div>
<div dir="ltr"><span>So lets say one has a data.table with the
following columns</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></span></blockquote></div></blockquote></div>