tisch allows to convert R data frames into LaTeX tables. Presently, tisch provides three advantages over other packages with similiar ambition:
Get the development version from Github: \Sexpr{devtools::install_github("crubba/tisch")}
We illustrate the generation of a tisch table with the french_fries data set from the reshape2 package:
library(tisch) data("browsershares") tt <- tisch(browsershares, rows = c("year", "month"), sep = " >> ") + theme( row_style = ragged(indent = 0.4) ) + caption("Browser market share in 2011-2013") + footnote("Note: Information taken from StatCounter. StatCounter reports desktop and mobile browser share separately; we report them together. For consistency, each desktop browser share has been reduced by multiplying it by the current overall desktop share versus mobile. Similarly, mobile browser shares have each been multiplied by the overall mobile percentage") to_tex(tt)
This code gives us the following output:
More detailed information on tisch can be learned from the package vignette.
tisch is in a very early development stage. Part of the API are likely to change in future versions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.