<div style="font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)"><div>I want to update a group of columns programmatically. Based on a predetermined list I want to convert the classes of some columns.</div>
<div><br></div><div>This is simple a simple task with <font face="courier new, monospace">data.frame</font>, but in data.table this requires a confusing combination of `<font face="courier new, monospace">substitute</font>`, `<font face="courier new, monospace">as.symbol</font>`, and `<font face="courier new, monospace">eval</font>`.</div>
<div><br></div><div>Am I doing this right?</div></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)"><br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">
My example: <a href="https://gist.github.com/geneorama/4998308" target="_blank" style="color:rgb(17,85,204)">https://gist.github.com/geneorama/4998308</a></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">
<br></div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">I was about to post a question, but SO suggested this answer:</div><div style="font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">
<a href="http://stackoverflow.com/questions/8374816/loop-through-columns-in-a-data-table-and-transform-those-columns" target="_blank" style="color:rgb(17,85,204)">http://stackoverflow.com/questions/8374816/loop-through-columns-in-a-data-table-and-transform-those-columns</a><br>
<div><br></div><div>Thank you,</div><div><br></div><div>Gene<br><br></div></div>