title: How to format numbers and cell in grid.table?
body: <p>I am having a lot of problems formatting a table. </p>
  
  <p>I would like to have multiple different formats within this table. </p>
  
  <p>Given the dataframe:</p>
  
  <pre><code>obs=c(1,2,3,4)
  n=c(30, 40, 1000, 33333)
  s=c(0.11111, 0.44444, 0.55555, 0.8888)
  m=c(222.222, 4444.5555, 5565.223, 323423.09808)
  
  df = data.frame(obs,n,s,m)
  
  Tdf  = setNames(data.frame(t(df [,-1])), df [,1])
  
  grid.table(Tdf)
  </code></pre>
  
  <p>I would like to have columns different colours. </p>
  
  <p>ie. blue, brown, blue, brown</p>
  
  <p>row n to have comma format such as: 30, 40, 1,000, 33,333.</p>
  
  <p>row s to have only two places after the decimal: 0.11, 0.44, 0.56, 0.89</p>
  
  <p>row m to have only two places after the decimal, and comma format, plus colour blue: 222.22, 4,444.56, 5,565.22, 323,423.10</p>
  
  <p>In addition, is it possible to format a individual cell different? </p>
  
  <p>I'm likely going to place a table like this blow a boxplot. </p>