在R Studio中使用R Html脚本我正在尝试插入一个表,但是当我将文件编织在一起时,我会在表格显示之前得到16行##。我有echo = FALSE和message = FALSE设置。这是它的样子:
我还缺少什么?
<html>
<head>
<title>Title</title>
</head>
<body>
<p>This is my table: </p>
<!--begin.rcode,echo=FALSE,message=FALSE,results='markup'
library(xtable)
df1 <- data.frame(
group = factor(rep(c("C", "G"), 5)),
value = 1:10)
df1 <- xtable(df1, caption = "Table 1")
print (df1,include.rownames = FALSE, caption.placement = "top", type="html")
end.rcode-->
</body>
</html>