Description
Create Highly-Customized 'LaTeX' Tables.
Description
Generate 'LaTeX' tables directly from R. It builds 'LaTeX' tables in blocks in the spirit of 'ggplot2' using the '+' and '/' operators for concatenation in the vertical and horizontal dimensions, respectively. It exports tables in the 'LaTeX' tabular environment using '.tex' code. It can compile '.tex' code to 'PDF' automatically.
README.md
textab: Create Highly-Customized LaTeX Tables in R
Created by Thibaut Lamadon and Bradley Setzler
The textab
package produces highly-customized LaTeX tables in R.
There are only three functions in this package:
TexRow
: Form a row in a LaTeX tabular environment.TexSave
: Save the tabular as a .tex file, and optionally compile it as a PDF.TexMidrule
: Insert a midrule, or list of partial midrules, between rows in a LaTeX tabular environment.
This package builds LaTeX tables in blocks, in the spirit of ggplot2
, using the +
and /
operators for concatenation.
- plus sign (
+
): Stack rows vertically (forming multiple rows). - slash sign (
/
): Combine rows side-by-side (forming a wider row).
To install the package from CRAN:
install.packages("textab")
To install the package from Github:
devtools::install_github("setzler/textab")
To use the package after it is installed:
library(textab)
To get started, read the following articles: