Create Highly-Customized 'LaTeX' Tables

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.


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:

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("textab")

1.0.1 by Bradley Setzler, 3 years ago


https://setzler.github.io/textab/


Report a bug at https://github.com/setzler/textab/issues


Browse source code at https://github.com/cran/textab


Authors: Thibaut Lamadon [aut, cph] , Bradley Setzler [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests knitr, rmarkdown


See at CRAN