我希望在Rnw文档的
我看过R:xtable标题(或注释),但对于从R中的lm()函数创建的表格不起作用。你有什么线索吗?
xtable
上放置一个标题。以下是代码。不幸的是,我无法在表格下添加标题。我尝试了\caption{}函数,但它不会打印PDF。我看过R:xtable标题(或注释),但对于从R中的lm()函数创建的表格不起作用。你有什么线索吗?
<<yoman,echo=FALSE,results=tex>>=
library(xtable)
pop5lm <- lm(mpg ~ wt, data=mtcars) #my linear model
print(xtable(pop5lm,
caption = c("Estimates of linear model for father Muro CB"),
label = "tab:one", digits = c(0,2, 2, 2,3)),
table.placement = "tbp",
caption.placement = "top")
@