I am trying to use Sweave to create a statistical report, and I am trying to put the header on xtable, however, if I include the percent sign, this will break things.
Sample code example
<<label=Analyte2_Results, results=tex, echo=FALSE>>= print(xtable(result[[2]], caption=paste(levels(vardata$Analyte)[1], " percent bias and precision estimates with 95 \% confidence intervals",sep="")), tabular.environment='longtable', latex.environments=c("center"), floating=FALSE, include.rownames=FALSE) @
If I use% or \%, then the Sweave process works, but Latex does not, if I try \%, then Sweave will fail. There seems to be no alternative way to specify a percent symbol in latex
Is there a way to put a percent symbol in the header?
r sweave latex xtable
PaulHurleyuk
source share