title: Change variable name in xtable
body: <p>I want to change the name of the variable I'm tabulating using <code>xtable()</code> in Sweave. I suppose that it's trivial, but I can't find out how to do it. Here's an example: I want to edit "conv" (it is the name of the variable I'm tabulating) and write whatever I want.</p>
  
  <p>The code I'm using to produce it:</p>
  
  <pre><code>&lt;&lt;results=tex,echo=FALSE&gt;&gt;=
  tab&lt;-prop.table(table(conv))*100
  print(xtable(tab,
               caption="Conversion a Premium (en tanto por ciento)",
               label="table:Conversion",
               digits=2),latex.environments = "center"
        )
  @
  </code></pre>
  
  <p>The result:</p>
  
  <p><a href="https://i.stack.imgur.com/M4XRS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M4XRS.png" alt="enter image description here"></a></p>
  
  <p>Thanks in advance!</p>