library(xtable) library(knitr)
PDF table
print(xtable(cars), type='latex', booktabs=FALSE)
HTML table
# print(xtable(cars), type='html')
Table in loop
for(s in unique(cars$speed)){ print(kable(subset(cars,speed==s))) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.