It works if you separate the print command and put the caption placement in
the print command
, see below:
\documentclass[11pt,a4paper]{article}
\usepackage{Sweave}
\begin{document}
<<>>=
x = runif(100, 1, 10)
y = 2 + 3 * x + rnorm(100)
@
<>=
library(xtable)
p <- (xtable(summary(lm(
Dear Renger,
This is occurring because "xtable" divides up the arguments into items related
to the "content" of the table and arguments related to the "layout" of the
table.
The "caption.placement" is an argument to "print.xtable()" rather than to
"xtable()":
print(xtable(summary(lm(y~x)),
2 matches
Mail list logo