0

Using the R Html script in R Studio I'm trying to insert a table, however when I knit the file together I get 16 rows of ## before the table shows up. I have echo=FALSE and message = FALSE set. Here's what it looks like:

enter image description here

What else am I missing?

<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>
gunr2171
  • 16,104
  • 25
  • 61
  • 88
GregRousell
  • 997
  • 2
  • 13
  • 23

0 Answers0