title: How to format columns in xtable output
body: <p>I have a data.frame DF and I'm using xtable to create an HTML table:</p>
  
  <pre><code>     Product    N° Clients     Capital (USD) Part. Capital (%) 
      1 A               536            2616925       33.62
      2 B               151            1613035       20.72
      3 c               112            1007983       12.95
  </code></pre>
  
  <p>The problem is that when generating the html:</p>
  
  <pre><code>    DF.TAB &lt;- xtable(DF, align = "cccrc",latex.environments="center", format.args = list(digits = 2, format = c("s","d","d","d","f"), big.mark = ","), floating = FALSE)
      print(DF.TAB,type = "html", include.rownames=FALSE, file = "DF.TAB.html")
  </code></pre>
  
  <p>I expect some columns (Part. Capital) to have two decimal places (even if some elements may be integers) and comma separator "," and for other columns to be treated as integers but the result is not this way:</p>
  
  <pre><code>     Product       N° Clients    Capital (USD) Part. Capital (%) 
      1 A               536          2616925.00       33.62
      2 B               151          1613035.00       20.72
      3 c               112          1007983.00       12.95
  </code></pre>
  
  <p>BTW, I had to align and format an "invisible" column because without that I couldn't get it work.
  Any help will be much appreciated.</p>