[datatable-help] can one name a collection of columns by specifying just the first and the last column
Farrel Buchinsky
fjbuch at gmail.com
Tue Feb 10 01:08:35 CET 2015
So lets say one has a data.table with the following columns
first.name, last.name, height, weight, shoe.size, eye.color, hair.length,
appendage.size, ear.length
If one wanted to just include weight through hair.length one would have to
go something such as this
dt[,list(weight, shoe.size, eye.color, hair.length)]
Is there a way to do something along the lines of
dt[,list(weight...hair.length)]
If so, can you direct me to the documentation? If not can you build it? Is
it difficult? Some data.tables have many columns.
Thanking you in anticipation.
Farrel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20150210/847572a3/attachment.html>
More information about the datatable-help
mailing list