I want to change the name of the variable I'm tabulating using xtable()
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.
The code I'm using to produce it:
<<results=tex,echo=FALSE>>=
tab<-prop.table(table(conv))*100
print(xtable(tab,
caption="Conversion a Premium (en tanto por ciento)",
label="table:Conversion",
digits=2),latex.environments = "center"
)
@
The result:
Thanks in advance!