<div dir="ltr">Ah, that did the trick! I'll use this quite a lot, I expect. Thanks, Arun. --Frank</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 6:19 PM, Arunkumar Srinivasan <span dir="ltr"><<a href="mailto:aragorn168b@gmail.com" target="_blank">aragorn168b@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>
                    Dear Frank,
                </div><div><br></div><div>Thanks for forwarding to the list. I always seem to forget to "reply-all". Apologies. Managed this time! :)</div><div><br></div><div>Try this on your data:</div><div><br>

</div><div><div>as.data.table(do.call("cbind", lapply(DT, function(x) {</div><div><span style="white-space:pre-wrap">   </span>if (is.list(x)) {</div><div><span style="white-space:pre-wrap">                </span>lapply(x, function(y) as.numeric(format(y, digits=2)))</div>

<div><span style="white-space:pre-wrap">  </span>} else </div><div><span style="white-space:pre-wrap">          </span>as.numeric(format(x, digits=2))</div><div>})))</div></div><div><br></div><div><br></div>
                <div><div><br></div><div>Arun</div><div><br></div></div>
                 
                <p style="color:#a0a0a8"><br></p>
            <br>_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org">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><br></blockquote></div><br></div>