title: Replacing colnames on a pandoc table
body: <p>Given the following example</p>
  
  <pre><code>library(pander)
  table &lt;- Titanic[1, 1, , ]
  tableWithMargins &lt;- addmargins(table)
  pander(tableWithMargins)
  
  ----------------------------
    &amp;nbsp;     No   Yes   Sum 
  ----------- ---- ----- -----
   **Child**   0     5     5  
  
   **Adult**  118   57    175 
  
    **Sum**   118   62    180 
  ----------------------------
  </code></pre>
  
  <p>I would like to substitute <code>&amp;nbsp;</code> with "Age". However, </p>
  
  <pre><code>colnames(tableWithMargins) &lt;- c("Age", "No", "Yes", "Sum")
  </code></pre>
  
  <p>Gives an error, because <code>length(colnames(tableWithMargins))</code> equals 3.</p>