Displaying 1 result from an estimated 1 matches for "rcccc".
Did you mean:
cccc
2011 Nov 18
2
xtable and sweave: caption placement problem
...of the
caption placement in the pdf-file.
\documentclass[11pt,a4paper]{article}
\usepackage{Sweave}
\begin{document}
<<>>=
x = runif(100, 1, 10)
y = 2 + 3 * x + rnorm(100)
@
<<echo=FALSE,results=tex>>=
library(xtable)
print(xtable(summary(lm(y~x)),
align="rcccc",
caption="Summary statistics for the regression model",
caption.placement="top", label="tab:summary",
digits=2))
@
\end{document}
Renger
_________________________________________
Renger van Nieuwkoop
Centre for Energy Policy and Economics, ETH Z?rich...