Get an HTML table from data in R

Knitr package outputs R data in many different formats, e.g. HTML or LaTex

From a dataframe to an HTML table for embedding on a website:

install.packages("knitr")

library(knitr)

kable((data), format = 'html', table.attr = "class=nofluid")