[datatable-help] Update columns in data.table programmatically

Gene Leynes gleynes+r at gmail.com
Thu Feb 21 16:49:50 CET 2013


I want to update a group of columns programmatically.  Based on a
predetermined list I want to convert the classes of some columns.

This is simple a simple task with data.frame, but in data.table this
requires a confusing combination of `substitute`, `as.symbol`, and `eval`.

Am I doing this right?

My example:   https://gist.github.com/geneorama/4998308

I was about to post a question, but SO suggested this answer:
http://stackoverflow.com/questions/8374816/loop-through-columns-in-a-data-table-and-transform-those-columns

Thank you,

Gene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/datatable-help/attachments/20130221/9c42c9c6/attachment.html>


More information about the datatable-help mailing list