Making Better Looking Tables

This is an R Markdown document.

library(xtable)
## Warning: package 'xtable' was built under R version 2.15.2
foo <- head(iris)
foo <- xtable(foo)
print(foo, type = "html", include.rownames = TRUE)
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1 5.10 3.50 1.40 0.20 setosa
2 4.90 3.00 1.40 0.20 setosa
3 4.70 3.20 1.30 0.20 setosa
4 4.60 3.10 1.50 0.20 setosa
5 5.00 3.60 1.40 0.20 setosa
6 5.40 3.90 1.70 0.40 setosa